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 "Ccc:" or "Bcc:" but haven't tested those yet.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.