Fixed formatting of the Date header in generated mail to be RFC-2822 compliant, per the report by Schelte Bron.