Board index » delphi » How to initialize TIdSMTP and TIdMessage?

How to initialize TIdSMTP and TIdMessage?


2006-08-19 07:43:56 AM
delphi213
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: codecentral.borland.com/item.aspx
 
 

Re:How to initialize TIdSMTP and TIdMessage?

"Blackbird Crow Raven" <XXXX@XXXXX.COM>writes
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