>I have to build a windows service app - the service will run all the time and will "do it's thing" once a day at a specified time - one of the things this service will be doing is generating e-mails if certain conditions are true.
>
>I've used Mabry's SMTP control in their MailX product extensively - but always in forms (i.e. I dropped the control on the form).
>
>What is the best way to have the functionality of this control in this windows service I'm building (i.e. - there is no UI)? Can I even include the functionality of this ActiveX control from a prg?
>
>Thanks in advance,
>
Al,
If you can create an instance of the control from the Command Window:
lox = createobject('Mabry.SMTPControl')
then you can probably use it in a PRG using the same syntax.
If not, you can create a form class, drop the control on the form and instantiate the form class in your PRG code. Just don't make the form visible and you shouldn't have any problems.
HTH.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao