Sendmail - bulk email
Posted on 1999-12-11
I have a flat ascii file where each line contains an email address. I also have a bash script that will read 1 line at a time and issue a command for sending out an email.
The email to be sent will all be the same email, just to different address (Christmas Greeting Card). I want to attach a small image file as well as a small text message in the body of the email.
How can I build this email file and how can I send it in batch mode.
I've tried building the email in Outlook Express and saving it to a file, then using mail firstname.lastname@example.org < emailfile.txt - but I get the entire email message in the body, the image file and all is still encoded etc..