We relaunched the TWiki.org project with an expanded TWiki charter, and we invite you to participate! The TWiki.org Code of Conduct agreement took effect on 27 Oct 2008. We ask existing twiki.org users to opt-in. You need to opt-in to participate in the Blog, Codev, Plugins and TWiki webs. -- PeterThoeny - 27 Oct 2008
You are here: TWiki> Support Web>CantConnectToMail (24 Mar 2005, RichardDonkin)
Tags:
create new tag
, view all tags

Question

TWiki gives me a mail send error when trying to register a user.

Apparently I already had Net::SMTP installed but not configured so I did the force install. During the program I added the SMTP host name, smtp.comcast.net, and the subsequent test said it passed. The script appeared as if it was going to ask for a user name and password for the SMTP host but it never did, and I'm not sure if one is required as it is for POP3.

Anyway, TWiki still gives me this error: ERROR: Can't send mail using Net::SMTP (can't connect to 'mail')

The path to Net::SMTP is: /usr/local/lib/perl5/5.8.5/Net/SMTP.pm

Is that correct? Is the error saying it can't find the module,or the module can't send mail?

testenv (http://www.torva.com/twiki/bin/testenv) doesn't report this path.

What's wrong?

Environment

TWiki version: TWikiRelease02Sep2004
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: FreeBSD 5.3
Web server: Apache 2.053
Perl version: 5.8.5
Client OS: XP
Web Browser: Firefox
Categories: Mail

-- JeffColter - 27 Feb 2005

Answer

If all else fail, read the directions department...

I put the path to Net::SMTP in $mailProgram in TWiki.cfg, and changed SMTPMAILHOST to my SMTP host, and it works now!

-- JeffColter - 27 Feb 2005

Just FYI, setting $mailProgram to the path to Net::SMTP would not have any effect - if TWiki can find CPAN:Net::SMTP, it uses it, ignoring the $mailProgram setting.

-- RichardDonkin - 24 Mar 2005

 
Topic revision: r2 - 24 Mar 2005 - 11:27:01 - RichardDonkin
 
TWIKI.NET
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback