Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: OT - Sending Email on Windows

by RolandGunslinger (Curate)
on Apr 22, 2005 at 16:55 UTC ( #450486=note: print w/ replies, xml ) Need Help??


in reply to OT - Sending Email on Windows

This is what I used to send pages to my text pager from Windows.

#!perl use strict; use warnings; use Net::SMTP; sub send_page { my ($host, $address, $subject, $message) = @_; my $smtp = Net::SMTP->new($host); $smtp->mail("sendlog.pl\@localhost"); $smtp->to("$address"); $smtp->data(); $smtp->datasend("To: $address\n"); $smtp->datasend("Subject: $subject\n"); $smtp->datasend("$message"); $smtp->dataend(); $smtp->quit; } 1;


Comment on Re: OT - Sending Email on Windows
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2014-12-25 23:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (163 votes), past polls