I tried sendmail and it says connect to localhost failed. Help please Eric
On Tue, 21 May 2002, Timothy Johnson wrote: > > You can also use Mail::Sendmail or Mail::Sender to send emails from a perl > script. Both should be on CPAN. > > -----Original Message----- > From: Tim Musson > To: [EMAIL PROTECTED] > Sent: 5/21/02 4:31 AM > Subject: Re: win32 mail > > 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] > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]