Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sendmail Multiple recipients

Status
Not open for further replies.

pvial

Programmer
May 17, 2002
1
AU
I noticed a reply to another recent thread that requested a similar help. However i'm not sure i want to use mailx.

what is the syntax for using sendmail to send an email to two recipients.
can i just use 2 addresses seperated by a ;
?
 
My friend,
use comma as the separator.

The following is a tested example:
eg: create the a file with contents like:
sendmail user1@domain1,user2@domain2 <<?
subject: Test multiple destinations
to: user1@domain1,user2@domain2
from: myaddress@mydomain
message body here
...
?

change permissions for the file to execute (chmod)
then execute the file.

You can probably also use &quot;Ccc:&quot; or &quot;Bcc:&quot; but haven't tested those yet.

Hope that helps.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top