marchopkins
asked on
Sending a Mass e-mail with Sendmail (Redhat ES)
I need to send a mass e-mail to all of my customers. Our mail server is a Linux box using Sendmail. I want to use the e-mail address alias pr@domain.com. Is there a way that i can do this other than sending the e-mail using BC and entering in every e-mail address each time i wish to send?
What is BC?
If you're using sendmail you'll need to setup masquerading first, here's a link on that:
http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html
Assuming there is some easy way for you to get your email addresses, like a flat text file:
$ cat addy
a@a.com
b@c.com
c@c.com
You can just script it like so:
for num in `cat addy`; do mail -s "Newsletter blah blah" $num < /home/bob/emails/messagete xtnov1308; done
Believe that's what you were asking.
http://www.cyberciti.biz/tips/sendmail-masquerading-configuration-howto.html
Assuming there is some easy way for you to get your email addresses, like a flat text file:
$ cat addy
a@a.com
b@c.com
c@c.com
You can just script it like so:
for num in `cat addy`; do mail -s "Newsletter blah blah" $num < /home/bob/emails/messagete
Believe that's what you were asking.
ASKER
Yes, looks like you have a good plan... Let me try it out.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
It somehow got lost in the sea of other things i have going. But, i plan to try to execute what you have provided very soon.