Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Set DATE header before sending message Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 18 September 2007 at 1:13am | IP Logged Quote iconbill

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 View iconbill's Profile Search for other posts by iconbill
 
Andrew
AfterLogic Support
AfterLogic Support


Joined: 28 April 2006
Location: United States
Online Status: Offline
Posts: 1189
Posted: 18 September 2007 at 3:30am | IP Logged Quote Andrew

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 View Andrew's Profile Search for other posts by Andrew
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 18 September 2007 at 6:28am | IP Logged Quote iconbill

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 View iconbill's Profile Search for other posts by iconbill
 
Alex
AfterLogic Support
AfterLogic Support
Avatar

Joined: 19 November 2003
Online Status: Offline
Posts: 2206
Posted: 18 September 2007 at 8:41am | IP Logged Quote Alex

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 View Alex's Profile Search for other posts by Alex
 
iconbill
Valued Community Member
Valued Community Member


Joined: 07 March 2007
Location: Netherlands
Online Status: Offline
Posts: 76
Posted: 18 September 2007 at 11:51pm | IP Logged Quote iconbill

Thank you very much Alex! I can set the date to whatever I want.

Greatings from Marco
Back to Top View iconbill's Profile Search for other posts by iconbill
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide