[ back to toc ]

Bignosebird's formmail

Date: 2002/05/06 11:00

Q:
I've dowloaded the Bignosebird formmail script. Everything is working just
fine. I've configurated the script for my needs. When I recieve the mail,
the date is not indicated. What's wrong ? The time is working fine
allthough its not the european time. I just can't get it wright, the time
is not local and there's no date at all? Are you able to help ?
You can visit my site at http://Familie-lefevere.net

Just mail me and I will send you the cgi script as well as my *.html file,
that is if you want to help me of course. Thanks in advance !

Regards,

*NAME-DELETED* *NAME-DELETED* (*NAME-DELETED*@Familie-lefevere.net)
A:
You have to check the part of the script that sends the mail. If you
happen to use the 'sendmail' method, then the program 'sendmail' is
malconfigured on the server. This is to be corrected by the system
manager.

If you use SMTP server then you have to alter the code in sub sendmail:

print MAIL "To: $to\n";
print MAIL "From: $fromaddr\n";
print MAIL "Reply-to: $replyaddr\n" if $replyaddr;
print MAIL "X-Mailer: Perl Powered Socket Mailer\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$message";
print MAIL "\n.\n";

there should be some extra header field that is going to contains the
date. I do not know the exact name of the header field, you have to search
for it in the RFC describing SMTP.

Regards,
Peter

[ back to toc ]