Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why do I need to open outlook to send e-mail, part II ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Why do I need to open outlook to send e-mail, part II ?
Divers
Thread ID:
00231324
Message ID:
00231324
Vues:
55
Hello everybody,
I have asked this question before, maybe now I got lucky now?
When I send e-mail from within Visual Foxpro 5.0a, the recipient
does not get the e-mail until I open "my" outlook. Why is that ?,
In other words, I still need to open outlook to actually send the
mail.
Here a sample of one of the codes that I have tried :

loMAPISession=CREATEOBJECT("MSMAPI.MAPISession.1") && Create the MAPI object.
loMAPISession.UserName="Windows Messaging"
loMAPISession.SignOn()
loMAPIMessage=CREATEOBJECT("MSMAPI.MAPIMessages.1")
WITH loMAPIMessage
.SessionID=loMAPISession.SessionID
.Compose()
.MsgIndex=-1
.MsgNoteText="Hi with ole"
.MsgSubject="Using MAPI for e-mail"
.RecipDisplayName=lcMyEmailAddress
.Send(0)
ENDWITH
loMAPISession.SignOff()

What am I missing ?
=THIS.Thanks("in advance")
Luis Guzman, MCP
"The only glory most of us have to hope for
is the glory of being normal." Katherine Fulleton Gerould
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform