Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSMapi control
Message
De
14/11/2001 08:28:38
 
 
À
13/11/2001 22:57:24
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Titre:
Divers
Thread ID:
00581298
Message ID:
00581419
Vues:
24
Jerry,
Try the following:
this.parent.OleMMess.compose
this.parent.OleMMess.msgnotetext = "Message Text"
this.parent.OleMMess.msgsubject  = "Secret Message"

this.parent.OleMMess.RecipDisplayName = "james.bond@spy.com"
this.parent.OleMMess.RecipType = 1
this.parent.OleMMess.ResolveName()

IF tlShowDialog
   *-- show e-mail message
   this.parent.OleMMess.Send(1)
ELSE
   *-- unattended mode
   this.parent.OleMMess.Send()
ENDIF
HTH
>Using VFP7 and msmapi.mapisession.1 and msmapi.mapimessages.1 activex controls.
>
>I am following the sample application supplied with VFP7 that demostrates using these controls to send email. The examples work, however, the email message is shown and is asking for an email address before it sends the email.
>
>How do you specify an email address and how can I avoid see the mail message?
>
>I want to be able to push a button and have the email sent without any user intervention. What properties do I need to fill in to be able to do this?
>
>Here's part of what I have so far:
>
>
>this.parent.OleMMess.compose
>this.parent.OleMMess.msgnotetext="My message"
>this.parent.OleMMess.msgsubject = "My subject"
>this.parent.OleMMess.send(1)
>
>
>Thanks,
>
>Jerryt
Daniel
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform