Author |
|
iconbill Valued Community Member
Joined: 07 March 2007 Location: Netherlands
Online Status: Offline Posts: 76
|
Posted: 18 September 2007 at 1:13am | IP Logged
|
|
|
Hello,
How can I set the DATE-header BEFORE sending the message?
Our problem description:
When a user is sending an email from our server (with GMT-time as regional settings), the header 'DATE' is formatted like:
'Tue, 18 Sep 2007 07:56:15 +0000'.
Because we known this example-user has an offset of 2 hours to the GMT time, the DATE-header has to be formatted like this:
'Tue, 18 Sep 2007 09:56:15 +0200'.
How to accomplish?
Kind regards,
Marco
|
Back to Top |
|
|
Andrew AfterLogic Support
Joined: 28 April 2006 Location: United States
Online Status: Offline Posts: 1189
|
Posted: 18 September 2007 at 3:30am | IP Logged
|
|
|
Actually, 'Tue, 18 Sep 2007 07:56:15 +0000' is equal to 'Tue, 18 Sep 2007 09:56:15 +0200' and any mail client software must convert the date specified in the Date header to the local timezone specified in its settings. Anyway, if you need to specify another date, you can use Message.Date property.
Best regards,
Andrew
|
Back to Top |
|
|
iconbill Valued Community Member
Joined: 07 March 2007 Location: Netherlands
Online Status: Offline Posts: 76
|
Posted: 18 September 2007 at 6:28am | IP Logged
|
|
|
Hi Andrew,
I was trying to use the '.Date' property for set the date, but it's not working. It does not give any kind of error, but even it is not taken my set date.
This is my example code:
objSMTP.Message.Date = "18 Sep 2007 16:00:00 +0200"
objSMTP.Message.SaveMessage EMLFileName
When I view the source of the saved message, the 'DATE-header' is still the date from the server (gmt-time)
Date: Tue, 18 Sep 2007 13:18:09 +0000
ps: I tried different date formats, and also '.Locked=false', but nothing changed.
What I am doing wrong? Why the date is not set?
King regards,
Marco
|
Back to Top |
|
|
Alex AfterLogic Support
Joined: 19 November 2003
Online Status: Offline Posts: 2206
|
Posted: 18 September 2007 at 8:41am | IP Logged
|
|
|
This issue is now fixed (earlier, Date was always generated automatically). Please make sure you're using the latest version of MailBee.dll from http://www.afterlogic.com/updates/mailbee.zip
Regards,
Alex
|
Back to Top |
|
|
iconbill Valued Community Member
Joined: 07 March 2007 Location: Netherlands
Online Status: Offline Posts: 76
|
Posted: 18 September 2007 at 11:51pm | IP Logged
|
|
|
Thank you very much Alex! I can set the date to whatever I want.
Greatings from Marco
|
Back to Top |
|
|