Here is some code that automates Outlook:
#INCLUDE outlook.h
oOutLookObject = CreateObject("Outlook.Application")
oEmailItem = oOutLookObject.CreateItem(olMailItem)
With oEmailItem
.Body = "See you at Tuesday's Meeting"
.To = "
abc@xyz.com"
.Subject = "Meeting Confirmation"
.ReadReceiptRequested = True
.Importance = olImportanceHigh
.Send
EndWith
The following are the contents of OUTLOOK.H
*/ Item Constants
#DEFINE olMailItem 0
#DEFINE olAppointmentItem 1
#DEFINE olContactItem 2
#DEFINE olTaskItem 3
#DEFINE olJournalItem 4
#DEFINE olNoteItem 5
#DEFINE olPostItem 6
*/ Folder Constants
#DEFINE olFolderCalendar 9
#DEFINE olFolderContacts 10
#DEFINE olFolderDeletedItems 3
#DEFINE olFolderInBox 6
#DEFINE olFolderJournal 11
#DEFINE olFolderNotes 12
#DEFINE olFolderOutBox 4
#DEFINE olFolderSentMail 5
#DEFINE olFolderTask 13
#DEFINE olBusy 2
#DEFINE True .T.
#DEFINE False .F.
#DEFINE olPrivate 2
*/ Importance Constants
#DEFINE olImportanceLow 0
#DEFINE olImportanceNormal 1
#DEFINE olImportanceHigh 2
>Hello,
>Does anyone know how I can email a document with an attachment in Visual Fox 5.0? I am trying to upgrade a 2.6 application to visual fox, but can't figure out how to email. We currently run Outlook. Any help would be aprreciated. Thanks!