Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSMapi control
Message
From
14/11/2001 08:28:38
 
 
To
13/11/2001 22:57:24
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00581298
Message ID:
00581419
Views:
23
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform