Solved

need to develop robust e-mail script

Posted on 2003-12-04
3
200 Views
Last Modified: 2010-03-04
I need to develop a robust e-mail script.

To ensure durability, I have a database table with two fields: (1) email address and (2) email body. New rows are appended to continually.

I want to develop a perl script to read the table and send off the e-mails, then delete the entries that have been successfully mailed. The script will be invoked on a regular basis.

This is simple enough at face value. However, I need to handle situations like a clogged or down smtp server.  I have no experience with sendmail.

Also, can I benefit from socket-level e-mailing rather than sendmail, given that I have alot of mail to send at once?

If you have any insight and/or info on articles or scripts out there, please respond. I have just spent two hours searching and have not found anything.

Thanks, Stuart


 
0
Comment
Question by:stuart_wachsberg
3 Comments
 
LVL 20

Accepted Solution

by:
jmcg earned 500 total points
ID: 9877178
Sendmail already incorporates stable queuing. It also handles retries when the receiving mail server is unresponsive. You only add complexity, not robustness, by trying to add a layer (a layer that will be much less thoroughly debugged) on top of what sendmail already does.

Check out the sendmail documentation to determine the flags or options that will work best for your task. For instance, a high-volume mailer will want to invoke sendmail with a queue-only option rather than the normal behavior of attempting delivery immediately.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

Email validation in proper way is  very important validation required in any web pages. This code is self explainable except that Regular Expression which I used for pattern matching. I originally published as a thread on my website : http://www…
A year or so back I was asked to have a play with MongoDB; within half an hour I had downloaded (http://www.mongodb.org/downloads),  installed and started the daemon, and had a console window open. After an hour or two of playing at the command …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

820 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