perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From RobertCZ <rob...@robert.cz>
Subject Embperl::Mail question: no Date in headers
Date Wed, 22 Dec 2004 11:35:50 GMT
Hi,

  Embperl::Mail doesn't send Date header which makes the mail look dated 
'1.1.1970' in Mozilla based clients. I add it manually like this

                ($year,$month,$day, $hour,$min,$sec) = Today_and_Now();
                $date = 
Day_of_Week_Abbreviation(Day_of_Week($year,$month,$day)) . ", $day " . 
Month_to_Text($month) . " $year $hour:$min:$sec";
                Embperl::Mail::Execute({ input => \$mail, subject => 
'Email z wwww stranek', to => $to, from => $fdat{email}, mailheaders => 
[ "Date: $date" ], mailhost => 'rumcajz.pcv.cz' });

I'm not sure what the relevat FRC says but it would be practical if 
Embperl did it itself, but then I'm not sure what format it should be, 
what about timezones etc.

Gerald, what do you think?

- Robert

P.S. I noticed I have to manually add mailhost => 'rumcajz.pcv.cz' even 
if I have Embperl_MailHost rumcajz.pcv.cz in my config - is this a know bug?


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message