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?
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement