[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

need to develop robust e-mail script

Posted on 2003-12-04
3
Medium Priority
?
207 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
1 Comment
 
LVL 20

Accepted Solution

by:
jmcg earned 1500 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

In the distant past (last year) I hacked together a little toy that would allow a couple of Manager types to query, preview, and extract data from a number of MongoDB instances, to their tool of choice: Excel (http://dilbert.com/strips/comic/2007-08…
Checking the Alert Log in AWS RDS Oracle can be a pain through their user interface.  I made a script to download the Alert Log, look for errors, and email me the trace files.  In this article I'll describe what I did and share my script.
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…
Six Sigma Control Plans
Suggested Courses

834 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