Solved

need to develop robust e-mail script

Posted on 2003-12-04
3
195 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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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 …
There are many situations when we need to display the data in sorted order. For example: Student details by name or by rank or by total marks etc. If you are working on data driven based projects then you will use sorting techniques very frequently.…
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…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now