Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Send email on Windows Server

by Thelonius (Priest)
on Jan 19, 2007 at 00:17 UTC ( #595387=note: print w/replies, xml ) Need Help??

in reply to Send email on Windows Server

You can connect to an SMTP server to send mails using modules such as Net::SMTP, Mail::Mailer::smtp, or Mail::Transport::SMTP.

The SMTP server can be on the same Windows box or can be on any other server that you can access and that allows you to send mail. I believe that Windows 2000 Server comes with bundled SMTP software. Your company almost certainly has an SMTP server that, with the proper security configuration, you can use.

You do have to handle the possibility that the SMTP server is not working/reachable when you try to send mail. If the server is on the same box, this is less likely (no network issues), but of course can still happen. Depending on your application, you can handle this either before or after the mail is generated. E.g. if you're generating the mail from a database of addresses, you can just regenerate from the database rather than saving the generated emails for retry. (Avoid sending duplicates, of course.) If you're sending emails based on, say events on a web server, it's a little more problematic.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://595387]
[choroba]: 1200 years is enough :-)
[marioroy]: Lady_Aleena my $ans = qx! find . -name "*.pl" -exec ls -l {} \\; !;
[Tanktalus]: My basic problem right now is that if I were willing to move, I could be back in Toronto with a pay raise. We have a number of reasons for not wanting to do that.
[marioroy]: I had to backslash the backslash inside qx.
[Tanktalus]: marioroy++ # nice catch
[Lady_Aleena]: marioroy, that makes kinda makes sense.
[Discipulus]: yes i can survive also in younger town.. but when i passed i saw many strange letters..
[Lady_Aleena]: marioroy, sorry, I am not making sense right now.

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-04-23 20:15 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (432 votes). Check out past polls.