| View previous topic :: View next topic |
| Author |
Message |
Blackbird Crow Raven Guest
|
Posted: Sat Aug 19, 2006 4:43 am Post subject: How to initialize TIdSMTP and TIdMessage? |
|
|
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
|
Posted: Sat Aug 19, 2006 5:27 am Post subject: Re: How to initialize TIdSMTP and TIdMessage? |
|
|
"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 |
|
 |
|