develooper Front page | perl.beginners | Postings from March 2002

MIME::Lite Query

Thread Next
From:
Mace, Richard
Date:
March 20, 2002 09:28
Subject:
MIME::Lite Query
Message ID:
F7724A72AD23D51189C600805F6FA0C4014719C9@CNTMSG00.lorien.co.uk
Hello there,
I'm using MIME::Lite to send E-mails out that are generated from a Perl
script.
I seem to be having problems with the date field. When I hard code a
date into
the message e.g.

$msg = new MIME::Lite
	From	=>	$from,
	To	=>	$to,
	Date	=>	'Wednesday 20th March 2002 17:30',
	etc

it works fine & the resulting E-mail includes the time the mail was
sent.


If I try to pass $date from Perl using localtime it does not work.
e.g.

$date = strftime "%a %d/%m/20%y %H:%M", localtime; (I know I get a valid
date here)

$msg = new MIME::Lite
	From	=>	$from,
	To	=>	$to,
	Date	=>	$date,
	etc

Does anybody know the rules regarding the date field and what it
expects. 
I cannot find the key info I require on CPAN.

Any info greatly received

Richard. 

Richard Mace
Fradley Telephone Unit
Lorien PLC


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About