Skip Menu |

This queue is for tickets about the libnet CPAN distribution.

Report information
The Basics
Id: 32537
Status: rejected
Priority: 0/
Queue: libnet

People
Owner: Nobody in particular
Requestors: mpapet [...] yahoo.com
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.22
Fixed in: (no value)



Subject: Net::SMTP Auth Doesn't work in Linux
This was tested on Debian Etch. Net::SMTP's auth feature does not work as documented in Linux. The following works, but is nothing like what the documentation for this module claims. use Net::SMTP; use MIME::Base64; $smtp = Net::SMTP->new( 'smtp.MYEMAILSMTPSERVER.com' ,# may need a helo parameter here on some servers Timeout => 30, Debug => 0, ); $smtp->datasend("AUTH LOGIN\n"); $smtp->response(); # -- Enter sending email box address username below. We will use this to login to SMTP -- $smtp->datasend(encode_base64('TYPEEMAILACCOUNTUSERNAMEHERE') ); $smtp->response(); # -- Enter email box address password below. We will use this to login to SMTP -- $smtp->datasend(encode_base64('TYPEEMAILACCOUNTPASSWORDHERE') ); $smtp->response(); # -- Enter email FROM below. -- $smtp->mail('ENTEREMAILADDRESSFROM@DOMAINNAME.COM'); # -- Enter email TO below -- $smtp->to('ENTEREMAILADDRESSTOMAILTO@DOMAINNAME.COM'); $smtp->data(); #This part creates the SMTP headers you see $smtp->datasend("To: Test\@DOMAINNAME.com\n"); $smtp->datasend("From: A Test Account <TEST\@DOMAINNAME.com>\n"); $smtp->datasend("Content-Type: text/html \n"); $smtp->datasend("Subject: A Test Message"); # line break to separate headers from message body $smtp->datasend("\n"); $smtp->datasend("Here is my test message body"); $smtp->datasend("\n"); $smtp->dataend(); $smtp->quit;
Subject: Re: [rt.cpan.org #32537] Net::SMTP Auth Doesn't work in Linux
Date: Thu, 24 Jan 2008 06:20:52 -0600
To: bug-libnet [...] rt.cpan.org
From: Graham Barr <gbarr [...] pobox.com>
Saying something does not work does not give others any information to help you. You give an example of what does work for you, but no example of how you are using the code when it does not work. Also, it is likely that it is dependent on the server you are connecting to, not the OS you are running on. So a debug trace from Net::SMTP would help. Graham.