Hi folks,
I'm new to perl and I have a question about sending mail from a windows 2000 server using Perl.
I have a perl script that runs on a windows 2000 server. When a certain condition is met, I need the script to send mail to my mail server. Basically I think I need a command line mail client like mail or mailx, so I can create a file handle, and call the mail client whenever I want to send mail. Like below:
open(MAIL, "|mailx -s Perl_Program john\@johndoe.com"
print MAIL "$some_message";
close(MAIL);
If it were a Unix box I would have no problems.....
Thanks,
StickyBit.
I'm new to perl and I have a question about sending mail from a windows 2000 server using Perl.
I have a perl script that runs on a windows 2000 server. When a certain condition is met, I need the script to send mail to my mail server. Basically I think I need a command line mail client like mail or mailx, so I can create a file handle, and call the mail client whenever I want to send mail. Like below:
open(MAIL, "|mailx -s Perl_Program john\@johndoe.com"
print MAIL "$some_message";
close(MAIL);
If it were a Unix box I would have no problems.....
Thanks,
StickyBit.