Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 imbibing at the Monastery: (3)
As of 2015-07-05 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (66 votes), past polls