On the same lines, I have this code someone posted here previously that I made a change or 2 to:
LOCAL loForm
loForm = createobject( 'form')
WITH OFORM
.addobject("Session1", "olecontrol", "MSMAPI.mapiSession")
.addobject("Message1", "olecontrol", "MSMAPI.mapiMessages")
.Session1.signon()
WITH .MESSAGE1
.sessionid = OFORM.Session1.sessionid
.compose()
.msgsubject = "Put the Subject here"
.msgnotetext = "Test goes here, you can send anything you want"
.AddressResolveUI = .T.
.RecipAddress = "
DOUGLAS.OSBORNE@SASIPOS.COM"
.AttachmentName="mistakes.txt"
.AttachmentPathName="c:\dbm\"
*
*-OLE IDispatch exception code 0 from MAPIMessages:
*-Upspecified Failure has occurred..
*
.send()
ENDWITH
.Session1.signoff()
ENDWITH
I get the error as noted above the send code - what parameter setting am I missing? How do you send more than 1 attachment?
Doug