JSP Hosting

HostingServicesSupportOrderAbout UsSoftwareHome

Even experts read the manuals. Our tech support staff has most of the books that are out on a wide variety of web topics. Here are some of their top picks. We think you'll find them useful and informative as well.


I'm not receiving email from my script.

To send email from a Perl script, you need to tell your script where it can find the sendmail executable on the server. The correct path is:

$mailprog = "/usr/lib/sendmail -t";

Make sure you escape the @ symbol in any email addresses you've included in your script. For example:

$email = "sales\@mmaweb.com"; 
Make sure you are writing output to an email pipe such as:
open (MAIL,"|/usr/lib/sendmail -t");
print MAIL "To: me\@myaddress.com\n";
print MAIL "From: you\@youraddress.com\n";
print MAIL "Subject: My Subject\n";
print MAIL "Hello\n";
close (MAIL);

Make sure you've included both a valid To: and From: addresses in your email text.

Make sure your script is not generating a 500 server error before it is able to reach the email sending routine.


Back To CGI-Tips


Note: MMA technical support staff cannot provide troubleshooting of problems with third-party CGI scripts including but not limited to: Perl scripts, C/C++ binaries, PHP or web/database integration unless these services are specifically contracted. For these services, please see our Quote Request Form.

Copyright © 1995-2012
Motivational Marketing Associates, LLC
All Rights Reserved.