General information
Category:
Coding, syntax & commands
Hi !
I'v got a error message "Error on opening attachment" when i try to attach a file to an e-mail message. I join a portion of the source code.
Thanks for your help.
thisform.olecontrol1.SessionId = thisform.olecontrol2.SessionId
thisform.olecontrol1.MsgIndex = -1
thisform.olecontrol1.Compose
thisform.olecontrol1.show
thisform.olecontrol1.AttachmentIndex = 0
thisform.olecontrol1.MsgSubject = "Satistics"
thisform.olecontrol1.AttachmentType = 0
thisform.olecontrol1.MsgNoteText = "Bonjour"
thisform.olecontrol1.AttachmentPosition = 7
thisform.olecontrol1.AttachmentPathName = "c:\at"
thisform.olecontrol1.AttachmentName = "Test.txt"
thisform.olecontrol1.Send(1)
thisform.olecontrol2.Signoff
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