in reply to Re: Net::SMTP and debugging ?
in thread Net::SMTP and debugging ?
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Net::SMTP and debugging ?
by demerphq (Chancellor) on Oct 06, 2003 at 11:22 UTC | |
by peterr (Scribe) on Oct 07, 2003 at 01:02 UTC | |
by peterr (Scribe) on Oct 07, 2003 at 01:41 UTC |