Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Windows service using SMTP ActiveX in prg
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00622030
Message ID:
00622033
Vues:
14
>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.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform