in reply to Re^6: Sending email in perl
in thread Sending email in perl
Are you sure the SMTP server name didn't change at the same time? I get the error message "Can't call method "auth" on an undefined value at noname.pl line 6." when I run the following code:
use warnings; use strict; use Net::SMTP; my $smtp = Net::SMTP -> new('wibble'); $smtp -> auth('URI', 'PSWD'); $smtp -> quit();
which strongly implies to me that the new failed and $smtp is undef.
The use strict; ... remark is like a standard disclaimer around here :)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
I am a dumb ass
by Eagle_f91 (Acolyte) on Sep 16, 2005 at 03:09 UTC |