merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
smtp <start> trying to connect to <mail.btinternet.com> Net::SMTP>>> Net::SMTP(2.29) Net::SMTP>>> Net::Cmd(2.26) Net::SMTP>>> Exporter(5.58) Net::SMTP>>> IO::Socket::INET(1.29) Net::SMTP>>> IO::Socket(1.29) Net::SMTP>>> IO::Handle(1.25) Net::SMTP=GLOB(0x1ba333c)<<< 220 smtp809.mail.ird.yahoo.com ESMTP Net::SMTP=GLOB(0x1ba333c)>>> EHLO localhost.localdomain Net::SMTP=GLOB(0x1ba333c)<<< 250-smtp809.mail.ird.yahoo.com Net::SMTP=GLOB(0x1ba333c)<<< 250-AUTH LOGIN PLAIN XYMCOOKIE Net::SMTP=GLOB(0x1ba333c)<<< 250-PIPELINING Net::SMTP=GLOB(0x1ba333c)<<< 250 8BITMIME connected to mail server <mail.btinternet.com> smtp->domain <Net::SMTP=GLOB(0x1ba333c)->domain> Net::SMTP=GLOB(0x1ba333c)>>> MAIL FROM:<e-mail address> Net::SMTP=GLOB(0x1ba333c)<<< 530 authentication required - "Your email could not be sent. To fix this you must make a simple change to your email (known as SMTP authentication). For advice visit www.btyahoo.com/smtp" after ->mail result <> for <e-mail address> Net::SMTP=GLOB(0x1ba333c)>>> RCPT TO:<e-mail address> Net::SMTP: Unexpected EOF on command channel at after ->recipient This is the error I got when I had unticked the SMTP boxand tried to send a test e-mail. Send test e-mail message: Cannot send the message. Verify the e-mail address in your account properties.use strict "vars"; use MIME::Entity; use Net::SMTP; my ($servername, $smtp, $mail_res, $mail_from, $mail_to); my $servername = "mail.btinternet.com"; use Net::SMTP; $smtp = 'start'; print "smtp <$smtp> trying to connect to <$servername>\n"; # Connect to the server $smtp = Net::SMTP->new($servername, Debug => 1); if($smtp =~ m/SMTP\=/) { print "\nconnected to mail server <$servername>\n"; print "smtp->domain <$smtp->domain>\n"; $mail_from = 'copied e-mail address'; $mail_res = $smtp->mail($mail_from); print "\nafter ->mail result <$mail_res> for <$mail_from>\n\n"; $mail_to = $mail_from; $smtp->recipient($mail_to); print "\nafter ->recipient\n\n"; } else { print "could NOT connect to mail server <$servername>\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SMTP e-mail 530 authenication problem
by Anonymous Monk on Jun 19, 2009 at 11:40 UTC | |
by merrymonk (Hermit) on Jun 19, 2009 at 12:31 UTC | |
by Anonymous Monk on Jun 19, 2009 at 12:52 UTC | |
by Anonymous Monk on Jun 19, 2009 at 13:56 UTC | |
by ig (Vicar) on Jun 21, 2009 at 00:47 UTC | |
by Anonymous Monk on Jun 19, 2009 at 14:06 UTC | |
by Anonymous Monk on Jun 19, 2009 at 14:08 UTC |