Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Email problem
Message
From
23/02/2000 01:48:50
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Send Email problem
Miscellaneous
Thread ID:
00335853
Message ID:
00335853
Views:
76
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
Map
View

Click here to load this message in the networking platform