
Solid, safe website tools.
Whatever your need, Will Bontrager builds powerful software solutions.
|
(Get Attention Ticker for your web site)
Debugging Email Generated with a ScriptBy Will Bontrager When you suspect that email isn't received because the document being generated in the script is defective somehow, have the email printed to a file where it can be inspected. Change something like this: open (MAIL, "|/sbin/sendmail -t"); To something like this: #open (MAIL, "|/sbin/sendmail -t"); open (MAIL,'>mail_' . time . '.txt'); sleep 1; That will print the email to a file on your server (the time and sleep to ensure a new file is created every time an email would otherwise be sent). That is one of my main methods of debugging email. The problem often becomes instantly obvious. The Email Debugging Article also has a list of things to check. August 13, 2005 Please note: Articles on this website are presented "as is". However - If you have a question about a CGI script, HTML, CSS, PHP, or JavaScript
Rate this blog post.
No page reload! |
|
|
© 1998-2001 William and Mari Bontrager |
|