Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Email Attachment Using VFP6, MSMAPI Class ole Controls
Message
From
30/01/2008 19:31:10
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Email Attachment Using VFP6, MSMAPI Class ole Controls
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01287365
Message ID:
01287365
Views:
67
Email attachment problem. What I have is a VFP form in which I have two OLE controls: oleSession and oleMessage. Each is based on the MSMAPI class. My code follows.
*****************************************
thisform.oleMessage.SessionID = thisform.oleSession.SessionId
thisform.oleMessage.MsgIndex = -1
thisform.oleMessage.Compose()

v_emaddr = "hambot@earthlink.net" && For test purposes
thisform.oleMessage.RecipDisplayName = allt(v_emaddr)
thisform.oleMessage.msgNoteText = "This is test text."

*****thisform.oleMessage.ResolveName()
thisform.oleMessage.MsgSubject = "*UA Manpower Request Alert*"

thisform.oleMessage.Send(0)
*****************************************
I've attempted to attach a file by including the 'attachments.add("MyFile")' code; tried several variations but no success. I will need to attach multiple files as well.

Any suggestions? Thanks. JS
Next
Reply
Map
View

Click here to load this message in the networking platform