Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Send Email From Gmail

by Adamba (Sexton)
on Jun 19, 2010 at 11:53 UTC ( #845529=note: print w/replies, xml ) Need Help??

in reply to Send Email From Gmail

Update! I've succeded sending mail from gmail with Net::SMTP::SSL

Now I need to send from hotmail, as I read it uses the TLS connection... I've tried to use again the Net::SMTP:TLS module, but again I get a connection timed out error...

Anyone Succeded sending email from Hotmail using Net::SMTP::TLS?

use strict; use warnings; use Email::Simple; use Net::SMTP::SSL; use Net::SMTP::TLS; my $to = ''; my $msg = "Test"; my $from = '>'; my $smtphost = ''; my $subject = 'Test Hotmail'; my $Hotmail = new Net::SMTP::TLS( 'localhost', Hello => '', Port => 25, Debug => 1, User => '', Password=> 'password' ); $Hotmail->mail($from); $Hotmail->to($to); $Hotmail->data(); $Hotmail->datasend("From: " . $from . "\n"); $Hotmail->datasend("To: " . $to . "\n"); $Hotmail->datasend("Subject: " . $subject . "\n"); $Hotmail->datasend("\n"); $Hotmail->datasend($msg . "\n"); $Hotmail->dataend(); $Hotmail->quit;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845529]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2018-03-23 08:20 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (289 votes). Check out past polls.