Thanks for putting me onto CGI::Carp, it has been great to be able to see _where_ the script is crashing. I just directed the log file to a path I could view via a browser, as SSH access take foreever to load.
I've now been able to use Net::SMTP successfully, once I put "localhost" as the domain/mailserver, it worked like a charm. The only problem I found was I could not do this
$from = 'sales@domain.com'; $toaddress = 'fredflintstone@disney.com'; $name = 'Fred Flintstone'; $smtp->mail('$from\n"); $smtp->to("$toaddress\n");
but got around the problem by putting email headers like this
$smtp->data(); $smtp->datasend("To: $name <$toaddress>\n"); $smtp->datasend("Subject: Confirmation and Thankyou\n"); $smtp->datasend("X-Order-IP: $ENV{REMOTE_ADDR}\n"); $smtp->datasend("\n"); $smtp->datasend("Hi $name,\n");
Peter
In reply to Re: Re: Net::SMTP and debugging ?
by peterr
in thread Net::SMTP and debugging ?
by peterr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |