Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Outlook & email
Message
General information
Forum:
Visual FoxPro
Category:
Third party products
Title:
Miscellaneous
Thread ID:
00823171
Message ID:
00823388
Views:
20
>>What could be my problem?
>>Do I need to initialize something, or release a variable pointing to Outlook object? What could I be missing?
>
>Have you set every object variable to NULL after the first email? That works for me...


I am now using the following code to test with Outlook 97.
THISFORM.oMail = CreateObject("Outlook.Application")		
oEmailItem = THISFORM.oMail.CreateItem(0)

oEmailItem.To = "ericg@dgcsolutions.qc.ca"
oEmailItem.Subject = "Subject"
oEmailItem.Importance = 1
oEmailItem.Body = "body text"
oEmailItem.Send

oEmailItem = null
THISFORM.oMail = null
Eric.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform