BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

wrong hour when sending an e-mail

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock
View previous topic :: View next topic  
Author Message
Guillem
Guest





PostPosted: Tue Aug 22, 2006 7:49 pm    Post subject: wrong hour when sending an e-mail Reply with quote



Hi,

using Indy 10.1.5 ( not the latest dev snapshot)

I am working on a simple app where I need to send an email with a
TidSMTP at a point. The e-mail is AFAICT well-formed except for one
detail: when created it somehow uses the local time as GMT time, thus
appearing as sent 2 hours later than in reality. I'm in the GMT+1 zone,
now +2 hours during summer time.

IIRC I hadn't this problem the last time I used TidSMTP, although it
was with a former version, not 10.1.5.

This is my code to create the message:

mensaje := TidMessage.Create;
mensaje.From.Address := WEmail;
mensaje.From.Name := WNombre;
mensaje.Subject := Asunto;
mensaje.Recipients.Add.Address := Destinatario;
mensaje.Body.Text := '';
//añadimos la parte de texto
TextoMensaje := TidText.Create(mensaje.MessageParts);
TextoMensaje.Body.AddStrings(Texto);
TextoMensaje.ContentType := 'text/html';

For the moment it is only HTML, no plain text part. I know that in this
case I could simply put it into the Body section of the TidMessage but
it is my intention to allow multipart in the future and this is for
testing. OTOH I do not think it has anything to do with my issue.

Any ideas? Am I missing anything?
--
Best regards :)

Guillem Vicens Meier
Dep. Informática Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Tue Aug 22, 2006 10:45 pm    Post subject: Re: wrong hour when sending an e-mail Reply with quote



"Guillem" <guillemvicens-nospam (AT) clubgreenoasis (DOT) com> wrote in message
news:xn0eqa4c6gn6bc000 (AT) newsgroups (DOT) borland.com...

Quote:
using Indy 10.1.5 ( not the latest dev snapshot)

Please upgrade to the latest snapshot and see if the problem continues.


Gambit
Back to top
Guillem
Guest





PostPosted: Wed Aug 23, 2006 6:53 pm    Post subject: Re: wrong hour when sending an e-mail Reply with quote



Remy Lebeau (TeamB) wrote:

Quote:

Please upgrade to the latest snapshot and see if the problem
continues.


Gambit

Hi Remy,

I was just about to do that but have a few questions about what to
uninstall prior to installing the latest snapshot. I checked the
"Installing and removing" section from http://docs.indyproject.org but
haven't found any reference to my questions, which are following.


- I have found a dclIndy100.jdbg in my \bin directory. Should I also
remove it?

- I found some *.bpi and *.lib files in the \lib\debug directory. I
understand they should also be removed, right? Not really sure what a
BPI file is.


TIA for any hint
--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Guillem
Guest





PostPosted: Wed Aug 23, 2006 6:54 pm    Post subject: Re: wrong hour when sending an e-mail Reply with quote

Guillem wrote:


Quote:
Hi Remy,

I was just about to do that but have a few questions about what to
uninstall prior to installing the latest snapshot. I checked the
"Installing and removing" section from http://docs.indyproject.org but
haven't found any reference to my questions, which are following.


- I have found a dclIndy100.jdbg in my \bin directory. Should I also
remove it?

- I found some *.bpi and *.lib files in the \lib\debug directory. I
understand they should also be removed, right? Not really sure what a
BPI file is.


TIA for any hint

Btw, using BDS 2006 Ent Update 2 with no hotfixes if that makes any
difference

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Wed Aug 23, 2006 11:20 pm    Post subject: Re: wrong hour when sending an e-mail Reply with quote

"Guillem" <guillemvicens-nospam (AT) clubgreenoasis (DOT) com> wrote in message
news:xn0eqbhf67tehl000 (AT) newsgroups (DOT) borland.com...

Quote:
I was just about to do that but have a few questions about what to
uninstall prior to installing the latest snapshot.

Please read the Indy Knowledge Base (http://www.indyproject.org/kb). It
explains what to remove.

Quote:
Not really sure what a BPI file is.

It is the import lib for a BPL package file.


Gambit
Back to top
Guillem
Guest





PostPosted: Thu Aug 24, 2006 3:38 pm    Post subject: Re: wrong hour when sending an e-mail Reply with quote

Remy Lebeau (TeamB) wrote:

Quote:

Please upgrade to the latest snapshot and see if the problem
continues.


Gambit

problem solved by the latest snapshot, although a new problem has
arised after installing it. See the new thread regarding it

--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Guillem
Guest





PostPosted: Thu Aug 24, 2006 4:10 pm    Post subject: Re: wrong hour when sending an e-mail Reply with quote

Remy Lebeau (TeamB) wrote:

Quote:

Please upgrade to the latest snapshot and see if the problem
continues.


Gambit

Hi Remy,

I installed the dev snapshot and it solved my problem but I got into
another I did not have before.

Please see my new thread regarding it.
--
Best regards :)

Guillem Vicens Meier
Dep. Informatica Green Service S.A.
www.clubgreenoasis.com
--
Contribute to the Indy Docs project: http://docs.indyproject.org
--
In order to contact me remove the -nospam
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Internet Winsock All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.