General information
Category:
ActiveX controls in VFP
Title:
MAPIMessage Problems Attaching
I am trying to attach a file to email, but I keep getting that error that the Attachment is not found even though it really is there. Here is my code:
WITH THISFORM
.oleSession.Signon
IF .oleSession.SessionID > 0
.oleMessage.SessionID = .oleSession.SessionID
ELSE
RETURN .F.
ENDIF
.oleMessage.Compose
.oleMessage.MsgSubject="Witness Needed"
.oleMessage.AttachmentIndex=.oleMessage.AttachmentCount+1
.oleMessage.AttachmentPathName="c:\form.pdf"
.oleMessage.AttachmentName=""
.oleMessage.RecipIndex = 0
.oleMessage.RecipDisplayName=RecipName
.oleMessage.ResolveName
.oleMessage.Send(0)
ENDWITH
Thanks for the help-Sara
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