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.
In reply to problem sending mail by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |