Hey Arran4,

nope, no send mail client in the default install of Win.

I usually use something I grabbed from TPJ

<Net::SMTP code>
use Net::SMTP;

my($mh, $MailTo, $Subject, $MessageBody);
#don't forget to set each of the above!

sub sendMail {
    my $smtp = Net::SMTP->new("$mh");
    $smtp->mail($MailTo); # envelope bits
    $smtp->to($MailTo); # envelope bits
    $smtp->data(); # Now for the message itself
    $smtp->datasend("From: $MailTo\n");
    $smtp->datasend("To: $MailTo\n");
    $smtp->datasend("$Subject\n\n");
    $smtp->datasend("$MessageBody");
    $smtp->dataend(); # end the message
    $smtp->quit;
}
</Net::SMTP code>



My MUA believes you used Microsoft Outlook Express 6.00.2600.0000
to write the following on Tuesday, May 21, 2002 at 2:57:43 AM.

A> isnt there are windows send mail client?

>> Anyone know how to fire off an email on a windows box from a perl script?
>> No guarantee that the machine the script executes on would have an
>> outlook/isapi client installed..

-- 
[EMAIL PROTECTED]
MUA = TB! v1.60k (www.RitLabs.com/The_Bat)
Windows 2000 5.0.2195 (Service Pack 2)
The days of the digital watch are numbered.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to