Solved

need to develop robust e-mail script

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
perl script help 5 233
PHP equivalent of opening a com object 5 69
Migrate OTRS to newest version. 1 312
Perl script to delete older files 6 73
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.…
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…
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

895 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

15 Experts available now in Live!

Get 1:1 Help Now