Link to home
Start Free TrialLog in
Avatar of marchopkins
marchopkinsFlag for United States of America

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?
Avatar of sjm_ee
sjm_ee
Flag of United Kingdom of Great Britain and Northern Ireland image

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/messagetextnov1308; done

Believe that's what you were asking.
Avatar of marchopkins

ASKER

Yes, looks like you have a good plan...  Let me try it out.
ASKER CERTIFIED SOLUTION
Avatar of Vryali
Vryali
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.