Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to send a mail from my gmx account, using Net::SMTP module. I have debug on so i can follow the data traffic. The login seems okay and up to the end everything looks good, but right before the end it fails saying:554-Transaction failed Net::SMTP::_SSL=GLOB(0x1844d3c)<<< 554 Unauthorized sender address. I cannot understand what is the problem because the sender's address is mine and i just logged in successfully. Here is my script:
use strict; use warnings; use Net::SMTP; my $smtp = Net::SMTP->new('mail.gmx.com', Hello => 'Rob.nl', Timeout => 30, Debug => 1, SSL => 1, Port => 465 ); $smtp->auth('accountname@gmx.com','password'); $smtp->mail('accountname@gmx.com'); $smtp->to('someone@gmail.com'); $smtp->data; $smtp->datasend("Hi."); $smtp->dataend; $smtp->quit;
I hope someone can help, tx.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: problem sending mail
by dave_the_m (Monsignor) on Aug 05, 2020 at 15:11 UTC | |
|
Re: problem sending mail
by jeffenstein (Hermit) on Aug 06, 2020 at 00:32 UTC | |
|
Re: problem sending mail
by soonix (Chancellor) on Aug 05, 2020 at 19:03 UTC | |
by Anonymous Monk on Aug 05, 2020 at 19:28 UTC | |
by haukex (Archbishop) on Aug 05, 2020 at 20:03 UTC | |
|
Re: problem sending mail
by Anonymous Monk on Aug 06, 2020 at 01:09 UTC | |
|
Re: problem sending mail
by Anonymous Monk on Aug 05, 2020 at 15:44 UTC | |
by jcb (Parson) on Aug 05, 2020 at 22:38 UTC |