Front page | perl.beginners |
Postings from February 2002
net::smtp and timestamp?
Thread Next
From:
Jonathan Chan
Date:
February 26, 2002 15:20
Subject:
net::smtp and timestamp?
Message ID:
5.1.0.14.2.20020226172321.00ad5c98@mailhost.broadcast.com
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: <jchan@broadcast.com>
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 <jchan@broadcast.com>;
Mon, 25 Feb 2002 16:41:40 -0600
From: jchan@broadcast.com
To: jchan@broadcast.com
Subject: test!!
code:
$from = 'jchan@broadcast.com';
$site = 'broadcast.com';
$smtp_host = 'mailhost.broadcast.com';
$to = 'jchan@broadcast.com';
$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;
Thread Next
-
net::smtp and timestamp?
by Jonathan Chan