
DouglasNelson
New User
Feb 25, 2011, 5:17 PM
Post #1 of 1
(1034 views)
|
Using Net:SMTP::TLS
|
Can't Post
|
|
I am trying to run the following: use Net::SMTP::TLS; eval { my $mailer = new Net::SMTP::TLS( 'mail server', Hello => 'another host', Port => 465, User => 'mymailid@mailhost.com', Password => 'My password'); $mailer->mail('my mail address'); $mailer->to('douglas.c.nelson@gmail.com'); $mailer->data; $mailer->datasend("Sent thru TLS!"); $mailer->dataend; $mailer->quit; } or do { print "\n\nError sending mail. Error: $@\n"; } But is comes back as "can not connect to mail host" My mail host is set up as: Secure Authentication: No connection security: SSL/TLS Any ideas what is going on?
|