There's more than one way to do things | |
PerlMonks |
Re^3: SMTP mail not working for meby chromatic (Archbishop) |
on Jan 13, 2012 at 06:53 UTC ( [id://947699]=note: print w/replies, xml ) | Need Help?? |
The error message means you need to install Net::SMTP_auth. In addition: my $smtp = Net::SMTP->new( ... );... should probably be instead: my $smtp = Net::SMTP_auth->new( ... );... and you almost certainly don't need the single quotes in: $smtp->auth('CRAM-MD5', '$ServerAccount', '$ServerPwd');... if you want the values of the variables, and not the literal strings. Improve your skills with Modern Perl: the free book.
In Section
Seekers of Perl Wisdom
|
|