howdy,
when using sending an automated email using net::smtp the time stamp is not
set correctly and the date line is not included in the headers.
is there a way to include the correct time stamp in the headers?
here's what i get:
Return-Path: <[EMAIL PROTECTED]>
Received: from broadcast.com ([172.21.133.55]) by mailhost.broadcast.com
(Post.Office MTA v3.1 release PO205e ID# 0-61905U600L400S0)
with ESMTP id AAA297 for <[EMAIL PROTECTED]>;
Mon, 25 Feb 2002 16:41:40 -0600
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: test!!
code:
$from = '[EMAIL PROTECTED]';
$site = 'broadcast.com';
$smtp_host = 'mailhost.broadcast.com';
$to = '[EMAIL PROTECTED]';
$subject = "test!!\n";
$smtp = Net::SMTP->new($smtp_host, Hello => 'broadcast.com');
$smtp->mail($from);
$smtp->to($to);
$smtp->data();
$smtp->datasend("From: $from\n");
$smtp->datasend("To: $to\n");
$smtp->datasend("Subject: $subject");
$smtp->datasend("\n");
$smtp->dataend();
$smtp->quit;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]