Menu

#35 Email date header uses incorrect format

open
nobody
None
5
2003-06-25
2003-06-25
No

The date format used for Aggie's email date header is
wrong. This causes MUAs I tried it with (Outlook and
Mozilla Thunderbird) to believe that all emails were
sent at midnight. Change line 422 of SmtpBatchMailer.cs
from

SendRequest(ref buf, header.Encode( "DATE", "{0}",
DateTime.Now.ToLongDateString()));

to

SendRequest(ref buf, header.Encode( "DATE", "{0:R}",
DateTime.UtcNow));

to fix the problem.

Discussion


Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.