General information
Category:
ActiveX controls in VFP
Title:
Sending Email with MAPI
Hello,
I am using the MSMAPI Session and Message objects as OleControls on a form.
So I launch the executable, and click a button to bring up my email form, which uses the above controls. I fill in some info and press send. The email message fires away just fine, and the form closes. At this point I am still in the same executable on the main form. So I click the button to go back to the same email form. I fill in the info, click send and I get an error message: "An Unspecified Failure has Occurred." And no mail is sent.
If I exit the executable, and relaunch it, then the email will work the first time, but not any additional times.
My code is basic. In the email form I signOn, Compose, set the Recipient, Subject and Text, Send(0) and SignOff.
Any help or suggestions would be greatly appreciated.
Thanks,
Tim Trostle
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only