Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: email on WIN32

by weismat (Friar)
on Oct 26, 2009 at 12:47 UTC ( [id://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.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others examining the Monastery: (4)
As of 2024-03-19 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found