[Webinar] Streamline your web hosting managementRegister Today


Sendmail - bulk email

Posted on 1999-12-11
Medium Priority
Last Modified: 2013-11-13
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 joe@aaa.net < emailfile.txt - but I get the entire email message in the body, the image file and all is still encoded etc..
Any Ideas.....
Question by:j_k
1 Comment

Accepted Solution

freelon earned 100 total points
ID: 2291617
Install majordomo!  Majordomo is a mailing list manager package and can handle this task.  In fact, your one-subscriber-address-per-line is the same format used by Majordomo, so once you configure the mailing list, you can just exchange the subscriber file with your existing file.  Check out http://www.greatcircle.com/majordomo/ for information on the program.  If you have a RedHat or Mandrake system, you may be able to find an RPM for majordomo from http://www.freshmeat.net if it's not already intalled.

Then once the list is set up, you just send the email to one address - the listname - and majordomo will handle the sending to all of your subscribers.

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Welcome back to our beginners guide of the popular Unix tool, cron. If you missed part one where we introduced this tool, the link is below. We left off learning how to build a simple script to schedule automatic back ups. Now, we’ll learn how to se…
Can you run Linux on a Windows system?  Yep.  Here's how.
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
Suggested Courses

607 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question