Delphi Pages Forums  

Go Back   Delphi Pages Forums > Delphi Forum > General

Lost Password?

Reply
 
Thread Tools Display Modes
  #1  
Old 04-23-2007, 10:52 PM
yhchan yhchan is offline
Member
 
Join Date: Oct 2006
Posts: 35
Default TidSmtp - Sent Date and Time Problem

Hi, i use TidSMTP and TidMessage to send a mail to my company account, i use my computer to run this program and the date and time is 24-4-2007 2:43pm but the date display in outlook is different as below:

Received Date = Tuesday, April 24, 2007 2:43 PM
Sent Date = Tuesday, April 24, 2007 10:43 PM

* I use the same computer to send and received email why the date and time display in outlook is different ?

Please help !!!
Reply With Quote
  #2  
Old 04-24-2007, 12:29 AM
Eddy-B Eddy-B is offline
Senior Member
 
Join Date: Feb 2002
Posts: 1,467
Default RE: TidSmtp - Sent Date and Time Problem

Are you parhaps located at GMT -8 ?

This just looks like a simple timezone difference. Is this the server time .. then it may be a GMT timeindex.

Eddy-B

Please click Accept as answer if this helped
Reply With Quote
  #3  
Old 04-24-2007, 01:15 AM
yhchan yhchan is offline
Member
 
Join Date: Oct 2006
Posts: 35
Default RE: TidSmtp - Sent Date and Time Problem

you means the SMTP ( Exchange ) server time Zone ? Is that anywhere to tell TidSMTP to use local PC date instead of SMTP server Date ?
Reply With Quote
  #4  
Old 04-24-2007, 01:29 AM
Eddy-B Eddy-B is offline
Senior Member
 
Join Date: Feb 2002
Posts: 1,467
Default RE: TidSmtp - Sent Date and Time Problem

The server itself attaches the SERVER time to each message, so it doesn't matter where the sender is located, or even has his time adjusted correctly. This way, the server can always trace messages back by their date/time in a correct manner, without having to compensate for each and every individual message.

Normally, when receiving an email, you will get the local time of the sender within the message header, and of course you have the local time at the receiving end. I think it's up to the recipient to determine what time to use for displaying the message. It may depend on the client being used (Outlook, Outlook Express, Thunderbird, etc...).
Normally i'd imagine it would display the time at which you received the message (so: local time at the receiver).



Eddy-B

Please click Accept as answer if this helped
Reply With Quote
  #5  
Old 04-24-2007, 06:07 PM
yhchan yhchan is offline
Member
 
Join Date: Oct 2006
Posts: 35
Default RE: TidSmtp - Sent Date and Time Problem

if this is the case, i just make sure the smtp server timezone and my local computer time zone is same and also the date and time are same, the problem should be solve ?

but if i using Ms Outlook to send email ( connect to same server using Exchange ), the sent datetime is correct, but if i use my TidSMTP to sent, problem will happend.
Reply With Quote
  #6  
Old 11-21-2007, 01:53 PM
Discord Discord is offline
Junior Member
 
Join Date: Mar 2004
Posts: 24
Default RE: TidSmtp - Sent Date and Time Problem

A bit late of a reply but I ran into the same problem using indy10. You simply need to set the .date to time() inside the TidMessage component. Like:
[DELPHI]
Msg.Date := time();
[/DELPHI]

-Discord
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT. The time now is 06:05 AM.


Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2019, vBulletin Solutions, Inc.