in reply to SMTP authentication problem

$smtp->auth('CRAM-MD5', '$ServerAccount', '$ServerPwd');
I suspect you do not want single quotes around your variables. They prevent variable interpolation. Try this:
$smtp->auth('CRAM-MD5', $ServerAccount, $ServerPwd);

perlcritic can warn you of this common type of error:

$ perlcritic -1 --verbose 6 893592.pl String *may* require interpolation at line 10, near ''CRAM-MD5', '$Ser +verAccount', '$ServerPwd''. (Severity: 1)

Replies are listed 'Best First'.
Re^2: SMTP authentication problem
by aceofspace (Acolyte) on Mar 17, 2011 at 01:10 UTC
    Tried your suggestion. Sorry, it does not work.