CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
Using Net:SMTP::TLS

 



DouglasNelson
New User

Feb 25, 2011, 5:17 PM

Post #1 of 1 (562 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?

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives