Question
Hi,
I want to use the Webnotify function. I've installed Net::SMTP 2.29,
MailerContrib, and I followed the setting and installing instructions in
MailerContrib and in the
TWikiSiteTools. But when I try out the "perl -I
mailnotify -q [web1...], the program turns out to have errors.
ERROR: Can't send mail using Net::SMTP.5.7.0 No AUTH command has been given.
There were nowhere to setup the mail address's password, so there should be errors regarding authentication to the mail server.
I can't use sendmail due to some reasons. So Net::SMTP is the only way out.
How do I set it up?
Thank you!
Environment
-- LouisaHuang - 16 May 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
TWiki doesn't support SASL auth (for no good reason as far as I can see) but you can edit lib/TWiki/Net.pm, and find the line that reads:
$smtp->mail( $from ) || die $mess.$smtp->message;
add the following line immediately above it:
$smtp->auth('username','password');
where username and password are your mail server username and password.
This will be fixed in a future version. See http://develop.twiki.org/~develop/cgi-bin/view/Bugs/Item2292
-- CrawfordCurrie - 16 May 2006
I did what you've said, but I still got this error...
ERROR: Can't send mail using Net::SMTP.5.7.0 No AUTH command has been given.
-- LouisaHuang - 17 May 2006