Gmail does not allow unsecured connections to its SMTP server, if you are looking to use Gmail SMTP from Perl script then you will need to install Perl module Net::SMTP::TLS

Following lines of code can be used to establish connection with Google SMTP server

use Net::SMTP::TLS;
 my $smtp = new Net::SMTP::TLS(
        'smtp.gmail.com',
        
        Port    =>      587
        User    =>      'me@gmail.com',
        Password=>      'Pazzw0rd');

Trackback

only 1 comment untill now

  1. This is the shizzle

Add your comment now