Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: sending email with starttls not working

by perlfan (Vicar)
on Jun 01, 2020 at 18:39 UTC ( [id://11117565]=note: print w/replies, xml ) Need Help??


in reply to sending email with starttls not working

This works for me, but I also don't have issues with my openssl or IO::Socket::SSL. I'd look there first.
my $config = Config::Tiny->new(); $config = Config::Tiny->read($config_file); my $transport = Email::Sender::Transport::SMTP::TLS->new( host => $config->{email}->{smtp_host}, port => 587, # defaults to TLS if not set username => 'bgates@microsoft.com', password => '66Fc1eb207d4380', helo => 'HELO', ); my $message = Email::Simple->create( header => [ From => 'bgates@microsoft.com', To => $to, Subject => $subject, ], body => $content, );

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11117565]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (5)
As of 2024-04-19 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found