| View previous topic :: View next topic |
| Author |
Message |
Guillem Guest
|
Posted: Tue Aug 22, 2006 7:49 pm Post subject: wrong hour when sending an e-mail |
|
|
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
|
Posted: Tue Aug 22, 2006 10:45 pm Post subject: Re: wrong hour when sending an e-mail |
|
|
"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
|
Posted: Wed Aug 23, 2006 6:53 pm Post subject: Re: wrong hour when sending an e-mail |
|
|
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
|
Posted: Wed Aug 23, 2006 6:54 pm Post subject: Re: wrong hour when sending an e-mail |
|
|
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
|
Posted: Wed Aug 23, 2006 11:20 pm Post subject: Re: wrong hour when sending an e-mail |
|
|
"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
|
Posted: Thu Aug 24, 2006 3:38 pm Post subject: Re: wrong hour when sending an e-mail |
|
|
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
|
Posted: Thu Aug 24, 2006 4:10 pm Post subject: Re: wrong hour when sending an e-mail |
|
|
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 |
|
 |
|