Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook automation
Message
 
À
28/04/2005 09:03:58
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
01009188
Message ID:
01009310
Vues:
21
Check this page:
http://www.aksel.com/whitepapers/OutlookAutomation.htm
There are some security issues (search Redemption)
Basically, it looks something like this:
* Instanciate and logon to Outlook Application Object
oOL=CREATEOBJECT('Outlook.Application')
oNS=oOL.GetNamespace("MAPI")
oNS.Logon
oMailItem=0 && oMailItem is a "common" outlook constant
oMI=oOL.CreateItem(oMailItem)
WITH oMI
.To="someone@somewhere.com"
.Subject="MailItem Subject "+TTOC(DATETIME(),1)
.Body="MailItem Body"
ENDWITH 
oMI.Send
If you are working with "Exchange" you will have other issues to address.

You might also google for SendMail.PRG (it implements Winsock for SMTP )

Also search foxpro CDO automation (it's an easy way_

But it seems that you could use "mailto" to work your user's issues.


>One more thing. I do not want to use the Shell Execute command to pop up the email form. The body of the email could be pretty big and break the shell execute command.
>
>Thanks again!
>
>
>>Greetings,
>>
>>I'm trying to add some email automation capabilities to a VFP 7 application.
>>
>>Does anyone have fast access to VFP/Outlook automation code that will.
>>
>>- Create a new email
>>- Fill the email with an HTML body and send to address from local VFP variables
>>- Open the email editor up and bring it to the front of the users screen.
>>
>>Note: I do not want to automatically send the email. I only want to BUILD the email and present it to the user for review or for them to add their own comments to the confirmation.
>>
>>Thanks in advance!!
Imagination is more important than knowledge
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform