http://www.perlmonks.org?node_id=845534


in reply to Send Email From Gmail

If using Net::SMTP::TLS, the 'Hello' param says who _you_ are. So try something like
my $mailer = new Net::SMTP::TLS( 'smtp.gmail.com', Hello => 'the _host_name_you_are_coming_from', [...]