Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Auto Sending of Email with Subject and Message
Message
De
20/11/2001 07:17:05
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00583832
Message ID:
00583835
Vues:
25
This message has been marked as the solution to the initial question of the thread.
Hi Chris you can do the following:
 lo = CREATEOBJECT('outlook.application')
 loitem = lo.CreateItem(0)
 loitem.Subject = put your subject here 
 loitem.body= put the body text here
 loitem.to = put the destination email here
 loitem.Send
or you can look to the MAPI control.

>Hi - I am currently using the following (Sorry if this isn't Windows API!) to launch a blank email message with no subject...
>
>DECLARE INTEGER ShellExecute IN SHELL32.DLL ;
> INTEGER nWinHandle, STRING cOperation,;
> STRING cFileName, STRING cParameters,;
> STRING cDirectory, INTEGER nShowWindow
>ShellExecute(0, "", "mailto:" + lcEmail, "", "",1)
>
>Is there a way to specify a subject and message and get the email message to go straight into the Outbox rather than appear on screen waiting to be sent?
>
>Thanks for any comments...
Alexandre Palma
Senior Application Architect
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform