Don't understand why you would like to use hotmail, any working/relaying
SMTP (sendmail) server would be valid.
Below is some sample code that works but is not really 'hot stuff', it was
taken from the mail::sendmail documentation available at www.perl.com and
www.perldoc.com
use Mail::Sendmail;
print "Testing Mail::Sendmail version $Mail::Sendmail::VERSION\n";
print "Default server: $Mail::Sendmail::mailcfg{smtp}->[0]\n";
print "Default sender: $Mail::Sendmail::mailcfg{from}\n";
%mail = (
To => '[EMAIL PROTECTED]',
#From => '[EMAIL PROTECTED]',
#Bcc => 'Someone <[EMAIL PROTECTED]>, Someone else [EMAIL PROTECTED]',
# only addresses are extracted from Bcc, real names disregarded
Cc => '[EMAIL PROTECTED]',
# Cc will appear in the header. (Bcc will not)
Subject => 'Test message',
'X-Mailer' => "Mail::Sendmail version $Mail::Sendmail::VERSION",
);
$mail{Smtp} = '194.7.1.47';
$mail{from} = '[EMAIL PROTECTED]';
$mail{'X-custom'} = 'My custom additionnal header';
$mail{'mESSaGE : '} = "The message key looks terrible, but works.";
# cheat on the date:
$mail{Date} = Mail::Sendmail::time_to_date( time() - 86400 );
if (sendmail %mail) { print "Mail sent OK.\n" }
else { print "Error sending mail: $Mail::Sendmail::error \n" }
print "\n\$Mail::Sendmail::log says:\n", $Mail::Sendmail::log;
Greets,
Joris
-----Original Message-----
From: Steve Thompson [mailto:[EMAIL PROTECTED]]
Sent: woensdag 21 maart 2001 23:53
To: [EMAIL PROTECTED]
Subject: hotmail
Has anyone by chance ever got MAIL::SENDMAIL to work with Hotmail specified
as the mail server?
best regards,
Stephen Thompson.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activeperl