Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Emailing from VFP
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00309303
Message ID:
00309377
Views:
36
>Has anybody done any emailing with exchange and outlook. I am loking for a code sample on how to do this. Thanks for any help that you can offer. Betty Castillo
Try the following (Outlook 9x required):
oOL = CreateObject("Outlook.Application")
If Vartype(oOL) = "O" Then
  oMsg = oOL.CreateItem(0)
  oMsg.Recipients.Add("somebody@msn.com")
  oMsg.Subject = "MRB Database Bug Report / Feedback"
  *!* oMsg.Display && lets the user fill out body and send it.
  oMsg.Body = "Hello There!"
  oMsg.Send
Else
  MessageBox("Error") && Not very intuitive error msg
Endif
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform