mail -s "subject" < email

What can I add to this line and where to automatically create a blind carbon copy?

Also if possible what can I add to this line and where if possible to add the address from?


Recommended Answers

All 3 Replies


What language are you using?

If this is sendmail then:

usage: mail [-eIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject]
to-addr [...] ]
mail [-eIiNnv] -f [name]
mail [-eIiNnv] [-u user]

NO I am just using the bash mail command.

have you tried mail --help then??

it should give you the BCC optin switch

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.