<div dir="ltr">I've found sending email very difficult on account of all the various hoops to jump through to prove you're not spamming.<div><br></div><div>For MIME::Lite you also have this at the top of the docs <a href="https://metacpan.org/pod/MIME::Lite">https://metacpan.org/pod/MIME::Lite</a></div><div><br></div><div>"<span style="color:rgb(0,0,0);font-family:arial,sans-serif;font-size:medium">MIME::Lite is not recommended by its current maintainer. There are a number of alternatives, like Email::MIME or MIME::Entity and Email::Sender, which you should probably use instead. MIME::Lite continues to accrue weird bug reports, and it is not receiving a large amount of refactoring due to the availability of better alternatives. Please consider using something else."</span></div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">For my own projects I've used <a href="http://www.mailgun.com/">http://www.mailgun.com/</a> and it was very easy (and the way I use it, very cheap too).</div><div class="gmail_quote"><br></div><div class="gmail_quote">Hope that helps</div><div class="gmail_quote"><br></div><div class="gmail_quote">Andrew</div><div class="gmail_quote"><br></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mon, Dec 1, 2014 at 5:02 PM, Richard Reina <span dir="ltr"><<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><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" target="_blank">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" target="_blank">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" target="_blank">richard@rushlogistics.com</a>';<br>$cc = '<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>';<br>$from = '<a href="mailto:gatorreina@gmail.com" target="_blank">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" target="_blank">smtp.gmail.com</a>", AuthUser=>"<a href="mailto:gatorreina@gmail.com" target="_blank">gatorreina@gmail.com</a>", AuthPass=>"mypass" ); <br><br><br><br></div></div></div></div>
<br>_______________________________________________<br>
SanFrancisco-pm mailing list<br>
<a href="mailto:SanFrancisco-pm@pm.org">SanFrancisco-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/sanfrancisco-pm" target="_blank">http://mail.pm.org/mailman/listinfo/sanfrancisco-pm</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Andrew Solomon<div><br></div><div>Mentor@Geekuni <a href="http://geekuni.com/" target="_blank">http://geekuni.com/</a></div><div><a href="http://www.linkedin.com/in/asolomon" target="_blank">http://www.linkedin.com/in/asolomon</a><br></div></div></div>
</div></div>