Solved

need to develop robust e-mail script

Posted on 2003-12-04
3
199 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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