The Date of message is not actual. For example today is: 03.02.2015 18:42 but Date of sended message is 03.01.2015 00:00
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
The Date Header did not work for me in Outlook; it shows some weird Date and Time. This worked for me:
DateTimeOffset now = DateTime.Now; buf.Append(SmtpCommands.Date); buf.Append(now.ToString("r"));
But I haven't done any serious testing
Thanks for using AIM, I will appreciate if you can provide the code that didn't work and output
Hi. I modify SendMail in SmtpSocketClient (Line 797) : //buf.Append(today.ToLongDateString()); I changed with buf.Append(GetRFC822Date(today)); where: private static string GetRFC822Date(DateTime date) { int offset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours; string timeZone = "+" + offset.ToString().PadLeft(2, '0');
if (offset < 0) { int i = offset * -1; timeZone = "-" + i.ToString().PadLeft(2, '0'); } return date.ToString("dd MMM yyyy HH:mm:ss " + timeZone.PadRight(5, '0')); }
Bye
In your code, what kind of object is variable buf?
thanks for your helps and support AiM is free and open source and forever needs your help. WE WILL ADD THIS IN OUR NEXT RELEASE
I have the same problem with the date message, value sent is different than actual
I hi think the correct function must be
private static string GetRFC822Date(DateTime date) { return date.ToUniversalTime().ToString("r"); }
When will a new release which solves this time issue be released?
The Date of message is not actual. For example today is: 03.02.2015 18:42 but Date of sended message is 03.01.2015 00:00
The Date Header did not work for me in Outlook; it shows some weird Date and Time.
This worked for me:
But I haven't done any serious testing
Thanks for using AIM, I will appreciate if you can provide the code that didn't work and output
View and moderate all "Bug Report" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
Hi.
I modify SendMail in SmtpSocketClient (Line 797) : //buf.Append(today.ToLongDateString());
I changed with
buf.Append(GetRFC822Date(today));
where:
private static string GetRFC822Date(DateTime date)
{
int offset = TimeZone.CurrentTimeZone.GetUtcOffset(DateTime.Now).Hours;
string timeZone = "+" + offset.ToString().PadLeft(2, '0');
Bye
View and moderate all "Bug Report" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
In your code, what kind of object is variable buf?
thanks for your helps and support AiM is free and open source and forever needs your help. WE WILL ADD THIS IN OUR NEXT RELEASE
View and moderate all "Bug Report" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I have the same problem with the date message, value sent is different than actual
View and moderate all "Bug Report" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
I have the same problem with the date message, value sent is different than actual
I hi think the correct function must be
Last edit: Fabio 2015-10-24
View and moderate all "Bug Report" comments posted by this user
Mark all as spam, and block user from posting to "Discussion"
When will a new release which solves this time issue be released?