Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Send Email problem
Message
 
 
To
23/02/2000 01:48:50
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00335853
Message ID:
00335855
Views:
15
Mankit,

I don't think you can set the AttachmentPosition. There was a KB article that talked about using it to solve a particular problem, but I had trouble with it a couple of years ago. You aren't addressing the email and calling ResolveName() method which is probably why Send is failing.

>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?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform