in reply to Re^4: Net::SMTP - To: and From: not appearing in headers?
in thread Net::SMTP - To: and From: not appearing in headers?
Some MTAs will add a Date field if it doesn't exist, but most won't. Other MTAs (e.g. Exim) will add the Date field if the message is transmitted locally but not when it is transmitted via SMTP. In general the MUA should add a date line, and in this case your script is the MUA.