Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Send Email problem
Message
De
23/02/2000 01:48:50
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Send Email problem
Divers
Thread ID:
00335853
Message ID:
00335853
Vues:
83
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
Fil
Voir

Click here to load this message in the networking platform