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 

How to initialize TIdSMTP and TIdMessage?

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





PostPosted: Sat Aug 19, 2006 4:43 am    Post subject: How to initialize TIdSMTP and TIdMessage? Reply with quote



I get these two warnings in my D2006 app, in a method that uses Indy
components to send email:

[Pascal Warning] BoontlingUtils.pas(360): W1036 Variable 'IndySMTP' might
not have been initialized

[Pascal Warning] BoontlingUtils.pas(364): W1036 Variable 'IndyMailMessage'
might not have been initialized

How does one initialize the TIdSMTP and TIdMessage components?

--
Be the first one on your block to read the uproariously hilarious novel "the
Zany Time Travels of Warble McGorkle" (Book 2 in a trilogy). Download it
here: http://codecentral.borland.com/item.aspx?id=24002
Back to top
Remy Lebeau (TeamB)
Guest





PostPosted: Sat Aug 19, 2006 5:27 am    Post subject: Re: How to initialize TIdSMTP and TIdMessage? Reply with quote



"Blackbird Crow Raven" <blacky (AT) redgreen (DOT) com> wrote in message
news:44e650bd (AT) newsgroups (DOT) borland.com...

Quote:
[Pascal Warning] BoontlingUtils.pas(360): W1036 Variable 'IndySMTP' might
not have been initialized

[Pascal Warning] BoontlingUtils.pas(364): W1036 Variable 'IndyMailMessage'
might not have been initialized

Please show your actual code. You are probably trying to access them before
instantiating them.

Quote:
How does one initialize the TIdSMTP and TIdMessage components?

The same way you instantiate any other component - by calling its Create()
constructor.


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.