I am developing a project that send E-mail by VFP6 application.
And file attrachment is required.
When I include the MAPIMessage.Attachmentxxxx 's command,
it then fail to send E-mail.
Here is the code I type in a button-click:
mapSess.DownLoadMail = .F.
mapSess.LogonUI = .T.
mapSess.SignOn
mapSess.NewSession = .T.
bNewSession = mapSess.NewSession
mapMess.SessionID = mapSess.SessionID
mapMess.Compose
mapMess.MsgSubject = 'testing'
mapMess.AttachmentIndex = this.parent.mapMess.AttachmentCount
mapMess.AttachmentPathName = 'c:\temp\abc.gif'
mapMess.AttachmentName = 'abc.gif'
mapMess.AttachmentType = 0
mapMess.AttachmentPosition = 1 **error with this
**what's wrong with this?
mapMess.send(.T.) ** if with attachment, error in this line!
mapSess.SignOff
mapSess.NewSession = .F.
bNewSession = mapSess.NewSession
Moreover, when i specify the recevier E-mail address, after the showing of Email client (i m using Outlook98), the Email fail to send, becoz it automatically insert the E-mail address under Email type text box instead of SMTP.
Any one can help?
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