Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Sending email through Outlook
Message
 
À
04/01/2012 07:30:17
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01532147
Message ID:
01532157
Vues:
52
>If you know Outlook is the MAPI client then ;
>
>
>loOutlook = CREATEOBJECT("Outlook.Application")
>loMessage = loOutlook.createitem(0)
>loMessage.TO = YourMailto
>loMessage.bcc = Yourbcclist
>loMessage.subject = YourEmailSubject
>
>*) then either;
>
> loMessage.body = YourEmailBody
>
>*) or
>
>  loMessage.HTMLBody = YourHTMLBody
>
>  loMessage.attachments.ADD(YourFileName)
>
>loMessage.DISPLAY()
>loInspector=loMessage.GetInspector()
>loInspector.Activate()
>
>loMessage = .NULL.
>loOutlook = .NULL.
>loInspector= .NULL.
>
>
>
>
>Gary.


Gary

I can get VFP tp open up the word file with my email set up correctly but when I click on send al it does is to sent the email to Oulook - I then have to go into Outlook to do a send / receive - is that correct?
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform