 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Laurent Saragosti Guest
|
Posted: Tue Nov 25, 2003 2:12 pm Post subject: Indy 9 and SMTP pb |
|
|
Hi,
i'm using D6 (sP2) with Indy 9, and i have an Access violation error
when using the LoadfromFile and SaveToFile methods from the TIdMessage
object.
Here a few line of code:
tstMsg.GenerateHeader;
tstMsg.SetBody(mmBody.Lines);
tstMsg.Date := Now;
tstMsg.Recipients.EMailAddresses := eTo.Text;
tstMsg.From.Address := eFrom.Text;
tstMsg.Subject := eSubject.Text;
tstMsg.ReceiptRecipient.Text := eFrom.Text;
Try
tstMsg.SaveToFile('C:TempIndyMsg.txt');
Except
end;
Then latter i try to load it back (after tempering with it of course!)
with the following code:
Try
tstMsg.LoadFromFile('C:TempIndyMsg.txt');
Except
end;
The project from where is extracted this code is very small, nothing
special in it ...
Any idea, please?
Tia
Laurent
Any idea?
|
|
| Back to top |
|
 |
Laurent Saragosti Guest
|
Posted: Tue Nov 25, 2003 3:20 pm Post subject: Re: Indy 9 and SMTP pb |
|
|
Hi again,
i found some info on the Newsgroup of Indy, that fix the savetofile, but
i still have a pb in the loadfromfile method.
Read TimeOut error!
Laurent Saragosti wrote:
| Quote: | Hi,
i'm using D6 (sP2) with Indy 9, and i have an Access violation error
when using the LoadfromFile and SaveToFile methods from the TIdMessage
object.
Here a few line of code:
tstMsg.GenerateHeader;
tstMsg.SetBody(mmBody.Lines);
tstMsg.Date := Now;
tstMsg.Recipients.EMailAddresses := eTo.Text;
tstMsg.From.Address := eFrom.Text;
tstMsg.Subject := eSubject.Text;
tstMsg.ReceiptRecipient.Text := eFrom.Text;
Try
tstMsg.SaveToFile('C:TempIndyMsg.txt');
Except
end;
Then latter i try to load it back (after tempering with it of course!)
with the following code:
Try
tstMsg.LoadFromFile('C:TempIndyMsg.txt');
Except
end;
The project from where is extracted this code is very small, nothing
special in it ...
Any idea, please?
Tia
Laurent
Any idea?
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Nov 25, 2003 9:10 pm Post subject: Re: Indy 9 and SMTP pb |
|
|
"Laurent Saragosti" <lds (AT) goldmail (DOT) net.il> wrote
| Quote: | i still have a pb in the loadfromfile method.
Read TimeOut error!
|
Make sure that your message has a terminating "." at the end of it on its
own line. Also, if you have not done so yet, go to Indy's website
(http://www.indyproject.org) and make sure that you are using the latest
snapshot version, I believe that issue has already been daddressed.
Gambit
|
|
| Back to top |
|
 |
Laurent Saragosti Guest
|
Posted: Wed Nov 26, 2003 12:18 pm Post subject: Re: Indy 9 and SMTP pb |
|
|
Hi Remy,
i will check the terminating "." issue!
Already been on the snapshot page yesterday ... found there units that
fix the savetofile method.
Tnx a lot
Laurent
Remy Lebeau (TeamB) wrote:
| Quote: | "Laurent Saragosti" <lds (AT) goldmail (DOT) net.il> wrote in message
news:3fc372c5$1 (AT) newsgroups (DOT) borland.com...
i still have a pb in the loadfromfile method.
Read TimeOut error!
Make sure that your message has a terminating "." at the end of it on its
own line. Also, if you have not done so yet, go to Indy's website
(http://www.indyproject.org) and make sure that you are using the latest
snapshot version, I believe that issue has already been daddressed.
Gambit
|
|
|
| Back to top |
|
 |
|
|
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
|
|