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 

Indy 9 and SMTP pb

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





PostPosted: Tue Nov 25, 2003 2:12 pm    Post subject: Indy 9 and SMTP pb Reply with 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
Laurent Saragosti
Guest





PostPosted: Tue Nov 25, 2003 3:20 pm    Post subject: Re: Indy 9 and SMTP pb Reply with quote



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





PostPosted: Tue Nov 25, 2003 9:10 pm    Post subject: Re: Indy 9 and SMTP pb Reply with quote




"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





PostPosted: Wed Nov 26, 2003 12:18 pm    Post subject: Re: Indy 9 and SMTP pb Reply with quote

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
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.