Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: email on WIN32

by weismat (Friar)
on Oct 26, 2009 at 12:47 UTC ( #803251=note: print w/ replies, xml ) Need Help??


in reply to email on WIN32

I have used Net::SMTP:SSL together with Mime::Lite against yahoo in the past. Example (untested)

#!/usr/local/bin/perl -w use Net::SMTP::SSL; $smtp = Net::SMTP::SSL->new('mailhost'); $smtp = Net::SMTP->new('smtp.bizmail.yahoo.com', Port=>465); $smtp->auth($user, $password); $smtp->mail(); $smtp->to('xxx'); $smtp->data(); $smtp->datasend("To: xxx\n"); $smtp->datasend("\n"); $smtp->datasend("$mime->as_string"); $smtp->dataend(); $smtp->quit;
You need to use the Winnipeg PPM to get any SSL related libs on Windows.


Comment on Re: email on WIN32
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2014-12-27 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls