Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Email Attachment Using VFP6, MSMAPI Class ole Controls
Message
De
30/01/2008 19:31:10
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Email Attachment Using VFP6, MSMAPI Class ole Controls
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01287365
Message ID:
01287365
Vues:
69
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform