<div dir="ltr"><div><div>I have tried to get this to work using three different sets of SMTP settings. Each time the result is the same:<br><br># perl <a href="http://test_mime_simple.pl">test_mime_simple.pl</a><br>SMTP Failed to connect to mail server: Connection timed out<br> at <a href="http://test_mime_simple.pl">test_mime_simple.pl</a> line 18.<br><br></div>Below is my attempt with gmail settings I have also tried with Port => 465. I seem to not be able to connect with ANY smtp server despite having a working internet connection.  Any ideas would be greatly appreciated.<br><br></div>Thanks<br><br><div><div><div><br>#!/usr/bin/perl<br>use MIME::Lite;<br> <br>$to = '<a href="mailto:richard@rushlogistics.com">richard@rushlogistics.com</a>';<br>$cc = '<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>';<br>$from = '<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>';<br>$subject = 'Test Email';<br>$message = 'This is test email sent by Perl Script';<br><br>$msg = MIME::Lite->new(<br>                 From     => $from,<br>                 To       => $to,<br>                 Cc       => $cc,<br>                 Subject  => $subject,<br>                 Data     => $message<br>                 );<br><br>$msg->send('smtp', "<a href="http://smtp.gmail.com">smtp.gmail.com</a>", AuthUser=>"<a href="mailto:gatorreina@gmail.com">gatorreina@gmail.com</a>", AuthPass=>"mypass" ); <br><br><br><br></div></div></div></div>