Tags:
create new tag
, view all tags

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

TWiki version: TWikiRelease04x00x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: Linux
Web server:  
Perl version:  
Client OS: MS Windows XP
Web Browser: Firefox
Categories: Mail

-- LouisaHuang - 16 May 2006

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list 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

 
Topic revision: r4 - 2006-05-17 - LouisaHuang
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.