Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

(shockme) Re: Mail on NT

by shockme (Chaplain)
on Apr 02, 2002 at 14:40 UTC ( [id://156008]=note: print w/replies, xml ) Need Help??


in reply to Mail on NT

I can't speak to Mail::Mailer, as I've never used it. Have you tried Mail::Sendmail? I've used it on several Windows platforms (from 9x to XP), and it's always worked well. It's independent of any "mailer" executable, such as sendmail, etc. The following code works for me (and is pretty much taken straight from the POD):
use Mail::Sendmail; my %mail = ( To => "$emailAddys", From => "whatever\@mail.edu", Subject => "$subject", Message => "@body", ); $mail{smtp} = 'smtp.mail.edu'; sendmail(%mail) or die "\nDoh! $Mail::Sendmail::error\n";
Update: Added example code per the following request.

If things get any worse, I'll have to ask you to stop helping me.

Replies are listed 'Best First'.
Re: (shockme) Re: Mail on NT
by Anonymous Monk on Apr 02, 2002 at 15:29 UTC
    shockme,

    Thanks!!!
    It now works. I appreciate all the replies.
    Again---Many Thanks!!
Re: (shockme) Re: Mail on NT
by Anonymous Monk on Apr 02, 2002 at 14:57 UTC
    Please show how sendmail would be used on an NT? I have used sendmail for Unix with no problems. Can you show me a script with the sendmail part on it using an NT??

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-03-19 06:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found