Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: OT - Sending Email on Windows

by softworkz (Monk)
on Apr 22, 2005 at 12:57 UTC ( #450398=note: print w/ replies, xml ) Need Help??


in reply to Re: OT - Sending Email on Windows
in thread OT - Sending Email on Windows

I'm on windoze also. I use Mail::Sendmail, but you need to know your smtp server! Edit the module and make the changes to reflect your smtp server and then edit\run this code to send an e-mail

#print "sending email"; my $Msg = "my first email"; my %mail = ( To => 'YOU@YOUREMAIL.com', Cc => 'SOMEONE@SOMEWHERE.com', From => 'HOST@SOMEWHERE.com', Subject => "Message", Message => "$Msg \n"); sendmail(%mail) or die $Mail::Sendmail::error;


Comment on Re^2: OT - Sending Email on Windows
Download Code
Replies are listed 'Best First'.
Re: OT - Sending Email on Windows
by Anonymous Monk on Apr 22, 2005 at 14:37 UTC
    Hi,!

    thanks for the replies everyone.

    I just followed gellyfish 's detailed instructions on configuring my IIS to allow relay connections for my SMTP at localhost and I finally got it to work!

    As of now, all I can hope is that I'm not the only one who had this problem with sending e-mail on Windows. Hopefully anyone who was in my situation --(Has adminstrative access to there Windows server and trying to allow your SMPT to relay so your perl script can work!) --then they can use this thread to solve their problem.

    It took so long sitting last night w/out accomplishing anything only because I took the time to try to get all three modules working to send e-mail, read all three e-mail sending module doc's, smpt related info, and basic IIS smpt config that in the long run didn't help much but give me a bit more knowledge.

    Thanks tanger

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2015-07-29 18:42 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 (267 votes), past polls