Hi there,

My application sends an e-mail thru MAPI. Problem is, the MAPI dialog box
shows up, and the user would have to press Send to actually _send_ the mail.

Anybody knows how to automate this?

TIA,
Willianto

p.s. I know there are lots of options from AutomatedEmail topic in
fox.wikis. Just hope that MAPI-ways would work.

Re: Can myApps ask MAPI to Press Send instead of ask the user to by Jan

Jan
Mon Feb 25 03:52:09 CST 2008

There is not "MAPI dialog box", MAPI is an interface. What mail client=20
do you use?


Willianto napsal(a):
> Hi there,
>=20
> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog b=
ox=20
> shows up, and the user would have to press Send to actually _send_ the =
mail.
>=20
> Anybody knows how to automate this?
>=20
> TIA,
> Willianto
>=20
> p.s. I know there are lots of options from AutomatedEmail topic in=20
> fox.wikis. Just hope that MAPI-ways would work.=20
>=20
>=20

--=20
Jan Bucek
17. listopadu 2657
544 01 Dv=F9r Kr=E1lov=E9 n. L.
www.bucek.info

Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Willianto

Willianto
Wed Feb 27 02:13:57 CST 2008

Hi Jan:

>There is not "MAPI dialog box", MAPI is an interface. What mail client do
>you use?

Ok. It's not MAPI dialog box. It's Outlook Express. The OE6 shows a message
box entitled 'Send email via MAPI' with message '{my e-mail subject} sent
successfully.

What I mean is, I want to close (thus, click [OK] on the messagebox)
automatically.

Ideas?

TIA,
Willianto


Willianto napsal(a):
> Hi there,
>
> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog box
> shows up, and the user would have to press Send to actually _send_ the
> mail.
>
> Anybody knows how to automate this?
>
> TIA,
> Willianto
>
> p.s. I know there are lots of options from AutomatedEmail topic in
> fox.wikis. Just hope that MAPI-ways would work.
>

--
Jan Bucek
17. listopadu 2657
544 01 Dvùr Králové n. L.
www.bucek.info



Re: Can myApps ask MAPI to Press Send instead of ask the user to by Jan

Jan
Wed Feb 27 04:23:11 CST 2008

Willianto napsal(a):
> Hi Jan:
>
>> There is not "MAPI dialog box", MAPI is an interface. What mail client do
>> you use?
>
> Ok. It's not MAPI dialog box. It's Outlook Express. The OE6 shows a message
> box entitled 'Send email via MAPI' with message '{my e-mail subject} sent
> successfully.
>

I do not use OE for years, but a client of mine uses my app sending
e-mails thru MAPI with OE=default mailclient - without any messages or
security qustions. He has Win2000 and therefore OE 6. I guess there has
to be any option to suppress the messages.
If you do not find an option to suppress this message, you have other
ways to go:
- to use MAPI and another mailclient (not MS Outlook, it has more
messages then OE) - I use Thunderbird
- to use any SMTP ocx or dll - so do I
- to use CDO

Shortly: I use MAPI in the case I want the user should be aware of what
I send out his PC (logging of program errors for example). For other
purpouses I use SMTP OCX.

> What I mean is, I want to close (thus, click [OK] on the messagebox)
> automatically.
>
> Ideas?
>
> TIA,
> Willianto
>
>
> Willianto napsal(a):
>> Hi there,
>>
>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog box
>> shows up, and the user would have to press Send to actually _send_ the
>> mail.
>>
>> Anybody knows how to automate this?
>>
>> TIA,
>> Willianto
>>
>> p.s. I know there are lots of options from AutomatedEmail topic in
>> fox.wikis. Just hope that MAPI-ways would work.
>>
>

Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Leonid

Leonid
Wed Feb 27 09:20:20 CST 2008

Try

keyboard "{Enter}"


just before


..send(0)



"Willianto" <willianto@deletetelkom.net> wrote in message
news:%23znl1ZReIHA.5400@TK2MSFTNGP04.phx.gbl...
> Hi Jan:
>
>>There is not "MAPI dialog box", MAPI is an interface. What mail client do
>>you use?
>
> Ok. It's not MAPI dialog box. It's Outlook Express. The OE6 shows a
> message box entitled 'Send email via MAPI' with message '{my e-mail
> subject} sent successfully.
>
> What I mean is, I want to close (thus, click [OK] on the messagebox)
> automatically.
>
> Ideas?
>
> TIA,
> Willianto
>
>
> Willianto napsal(a):
>> Hi there,
>>
>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog box
>> shows up, and the user would have to press Send to actually _send_ the
>> mail.
>>
>> Anybody knows how to automate this?
>>
>> TIA,
>> Willianto
>>
>> p.s. I know there are lots of options from AutomatedEmail topic in
>> fox.wikis. Just hope that MAPI-ways would work.
>>
>
> --
> Jan Bucek
> 17. listopadu 2657
> 544 01 Dvùr Králové n. L.
> www.bucek.info
>



Re: Can myApps ask MAPI to Press Send instead of ask the user to by Jan

Jan
Wed Feb 27 10:12:24 CST 2008

Leonid napsal(a):
> Try
>=20
> keyboard "{Enter}"
>=20
>=20
> just before
>=20
>=20
> ..send(0)
>=20
>=20

I wonder if it works. KEYBOARD stuffs buffer of VFP, not the keyboard=20
buffer of OE. I think every process has it own keyboard buffer. It is=20
possible to send keys to other apps/processes, but you have to use=20
WScript. I have never done it and I do not know how to send control=20
chars (ENTER or SPACE in your case)


>=20
> "Willianto" <willianto@deletetelkom.net> wrote in message=20
> news:%23znl1ZReIHA.5400@TK2MSFTNGP04.phx.gbl...
>> Hi Jan:
>>
>>> There is not "MAPI dialog box", MAPI is an interface. What mail clien=
t do=20
>>> you use?
>> Ok. It's not MAPI dialog box. It's Outlook Express. The OE6 shows a=20
>> message box entitled 'Send email via MAPI' with message '{my e-mail=20
>> subject} sent successfully.
>>
>> What I mean is, I want to close (thus, click [OK] on the messagebox)=20
>> automatically.
>>
>> Ideas?
>>
>> TIA,
>> Willianto
>>
>>
>> Willianto napsal(a):
>>> Hi there,
>>>
>>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog=
box=20
>>> shows up, and the user would have to press Send to actually _send_ th=
e=20
>>> mail.
>>>
>>> Anybody knows how to automate this?
>>>
>>> TIA,
>>> Willianto
>>>
>>> p.s. I know there are lots of options from AutomatedEmail topic in=20
>>> fox.wikis. Just hope that MAPI-ways would work.
>>>
>> --=20
>> Jan Bucek
>> 17. listopadu 2657
>> 544 01 Dv=F9r Kr=E1lov=E9 n. L.
>> www.bucek.info
>>
>=20
>=20


Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Willianto

Willianto
Thu Feb 28 02:52:26 CST 2008


Leonid:

> Try
>
> keyboard "{Enter}"

Just tried. Didn't work :( . As Jan mentioned on his post, the {enter} seems
to go in to the vfp keyboard buffer instead of OE's keyboard buffer.
Anyway, that comes to a new solution - and problem; how do I send specific
key to another windows process? But, i think i'll put that in another
thread. Hope you can chime in there. Thanks.

wbr,
Willianto



Re: Can myApps ask MAPI to Press Send instead of ask the user to by Jan

Jan
Thu Feb 28 04:59:19 CST 2008

Hi,
I have configured OE and tested it. My app sends e-mail thru MAPI with=20
OutlookExpress as default mail-client. It runs O.K., without any message =

or question from OE (only a small send-window of OE flashes momently).=20
My message is saved in "sent" folder of OE and it is delivered to a=20
recipient.

I have Win2000 SP4, OE ver. 6, all patches applied.
To send messages from VFP thru MAPI I use excellent class MAPImail from=20
www.nbcsoftware.com

I think you are to check all Options of OE, first of all "Security" Page =

of "Options".

Willianto napsal(a):
> Hi there,
>=20
> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog b=
ox=20
> shows up, and the user would have to press Send to actually _send_ the =
mail.
>=20
> Anybody knows how to automate this?
>=20
> TIA,
> Willianto
>=20
> p.s. I know there are lots of options from AutomatedEmail topic in=20
> fox.wikis. Just hope that MAPI-ways would work.=20
>=20
>=20

--=20
Jan Bucek
17. listopadu 2657
544 01 Dv=F9r Kr=E1lov=E9 n. L.
www.bucek.info

Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Leonid

Leonid
Thu Feb 28 09:11:29 CST 2008

I believe that that window appears in the same process. I use the following
code for years to suppress it:

oForm.Mapi.Session.DownloadMail = .f.
oForm.Mapi.Session.SignOn
oForm.Mapi.Message.SessionId = oForm.Mapi.Session.SessionId
oForm.Mapi.Message.MsgIndex = -1
oForm.Mapi.Message.Compose
oForm.Mapi.Message.RecipIndex = 0
oForm.Mapi.Message.RecipType = 1
oForm.Mapi.Message.RecipAddress = m.adr
oForm.Mapi.Message.AddressResolveUI = .F.
oForm.Mapi.Message.msgsubject = m.Sub
oForm.Mapi.Message.msgnotetext = ""

keyboard "{Enter}"
oForm.Mapi.Message.Send(.F.)
oForm.Mapi.Session.SignOff



"Willianto" <willianto@deletetelkom.net> wrote in message
news:eook$TeeIHA.4144@TK2MSFTNGP05.phx.gbl...
>
> Leonid:
>
>> Try
>>
>> keyboard "{Enter}"
>
> Just tried. Didn't work :( . As Jan mentioned on his post, the {enter}
> seems to go in to the vfp keyboard buffer instead of OE's keyboard buffer.
> Anyway, that comes to a new solution - and problem; how do I send specific
> key to another windows process? But, i think i'll put that in another
> thread. Hope you can chime in there. Thanks.
>
> wbr,
> Willianto
>



Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Leonid

Leonid
Thu Feb 28 09:13:18 CST 2008

This problem doesn't arise in Win2000. It was introduced in XP for "security
reasons".



"Jan Bucek" <bucek.jan@post.cz> wrote in message
news:uSCwAjfeIHA.748@TK2MSFTNGP04.phx.gbl...
Hi,
I have configured OE and tested it. My app sends e-mail thru MAPI with
OutlookExpress as default mail-client. It runs O.K., without any message
or question from OE (only a small send-window of OE flashes momently).
My message is saved in "sent" folder of OE and it is delivered to a
recipient.

I have Win2000 SP4, OE ver. 6, all patches applied.
To send messages from VFP thru MAPI I use excellent class MAPImail from
www.nbcsoftware.com

I think you are to check all Options of OE, first of all "Security" Page
of "Options".

Willianto napsal(a):
> Hi there,
>
> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog box
> shows up, and the user would have to press Send to actually _send_ the
> mail.
>
> Anybody knows how to automate this?
>
> TIA,
> Willianto
>
> p.s. I know there are lots of options from AutomatedEmail topic in
> fox.wikis. Just hope that MAPI-ways would work.
>

--
Jan Bucek
17. listopadu 2657
544 01 Dvùr Králové n. L.
www.bucek.info



Re: Can myApps ask MAPI to Press Send instead of ask the user to by Jan

Jan
Thu Feb 28 09:55:22 CST 2008

Leonid napsal(a):
> This problem doesn't arise in Win2000. It was introduced in XP for "security
> reasons".


I think the OE ver. 6. is the same for 2K or XP.

>
>
>
> "Jan Bucek" <bucek.jan@post.cz> wrote in message
> news:uSCwAjfeIHA.748@TK2MSFTNGP04.phx.gbl...
> Hi,
> I have configured OE and tested it. My app sends e-mail thru MAPI with
> OutlookExpress as default mail-client. It runs O.K., without any message
> or question from OE (only a small send-window of OE flashes momently).
> My message is saved in "sent" folder of OE and it is delivered to a
> recipient.
>
> I have Win2000 SP4, OE ver. 6, all patches applied.
> To send messages from VFP thru MAPI I use excellent class MAPImail from
> www.nbcsoftware.com
>
> I think you are to check all Options of OE, first of all "Security" Page
> of "Options".
>
> Willianto napsal(a):
>> Hi there,
>>
>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog box
>> shows up, and the user would have to press Send to actually _send_ the
>> mail.
>>
>> Anybody knows how to automate this?
>>
>> TIA,
>> Willianto
>>
>> p.s. I know there are lots of options from AutomatedEmail topic in
>> fox.wikis. Just hope that MAPI-ways would work.
>>
>

Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Leonid

Leonid
Fri Feb 29 04:52:43 CST 2008

It's not OE window, it's XP window.

"Jan Bucek" <bucek.jan@post.cz> wrote in message
news:%23CtpTJieIHA.6136@TK2MSFTNGP03.phx.gbl...
> Leonid napsal(a):
>> This problem doesn't arise in Win2000. It was introduced in XP for
>> "security reasons".
>
>
> I think the OE ver. 6. is the same for 2K or XP.
>
>>
>>
>>
>> "Jan Bucek" <bucek.jan@post.cz> wrote in message
>> news:uSCwAjfeIHA.748@TK2MSFTNGP04.phx.gbl...
>> Hi,
>> I have configured OE and tested it. My app sends e-mail thru MAPI with
>> OutlookExpress as default mail-client. It runs O.K., without any message
>> or question from OE (only a small send-window of OE flashes momently).
>> My message is saved in "sent" folder of OE and it is delivered to a
>> recipient.
>>
>> I have Win2000 SP4, OE ver. 6, all patches applied.
>> To send messages from VFP thru MAPI I use excellent class MAPImail from
>> www.nbcsoftware.com
>>
>> I think you are to check all Options of OE, first of all "Security" Page
>> of "Options".
>>
>> Willianto napsal(a):
>>> Hi there,
>>>
>>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog
>>> box shows up, and the user would have to press Send to actually _send_
>>> the mail.
>>>
>>> Anybody knows how to automate this?
>>>
>>> TIA,
>>> Willianto
>>>
>>> p.s. I know there are lots of options from AutomatedEmail topic in
>>> fox.wikis. Just hope that MAPI-ways would work.
>>>
>>



Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by HerbertDB

HerbertDB
Fri Feb 29 22:31:51 CST 2008

In OE, go to TOOLS menu, then select OPTIONS.
In the security TAB uncheck "Warn me when other apps try to send mail as me"



"Leonid" <leonid at grada dot lv> wrote in message
news:e%23gl3EseIHA.4684@TK2MSFTNGP06.phx.gbl...
> It's not OE window, it's XP window.
>
> "Jan Bucek" <bucek.jan@post.cz> wrote in message
> news:%23CtpTJieIHA.6136@TK2MSFTNGP03.phx.gbl...
>> Leonid napsal(a):
>>> This problem doesn't arise in Win2000. It was introduced in XP for
>>> "security reasons".
>>
>>
>> I think the OE ver. 6. is the same for 2K or XP.
>>
>>>
>>>
>>>
>>> "Jan Bucek" <bucek.jan@post.cz> wrote in message
>>> news:uSCwAjfeIHA.748@TK2MSFTNGP04.phx.gbl...
>>> Hi,
>>> I have configured OE and tested it. My app sends e-mail thru MAPI with
>>> OutlookExpress as default mail-client. It runs O.K., without any message
>>> or question from OE (only a small send-window of OE flashes momently).
>>> My message is saved in "sent" folder of OE and it is delivered to a
>>> recipient.
>>>
>>> I have Win2000 SP4, OE ver. 6, all patches applied.
>>> To send messages from VFP thru MAPI I use excellent class MAPImail from
>>> www.nbcsoftware.com
>>>
>>> I think you are to check all Options of OE, first of all "Security" Page
>>> of "Options".
>>>
>>> Willianto napsal(a):
>>>> Hi there,
>>>>
>>>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog
>>>> box shows up, and the user would have to press Send to actually _send_
>>>> the mail.
>>>>
>>>> Anybody knows how to automate this?
>>>>
>>>> TIA,
>>>> Willianto
>>>>
>>>> p.s. I know there are lots of options from AutomatedEmail topic in
>>>> fox.wikis. Just hope that MAPI-ways would work.
>>>>
>>>
>
>



Re: Can myApps ask MAPI to Press Send instead of ask the user to by Jan

Jan
Sat Mar 01 12:29:44 CST 2008

HerbertDB napsal(a):
> In OE, go to TOOLS menu, then select OPTIONS.
> In the security TAB uncheck "Warn me when other apps try to send mail as me"


Just this I tried to tell to Willianto, but for I have czech version of
Win and OE, I was not able to describe exactly which options to check.

>
>
>
> "Leonid" <leonid at grada dot lv> wrote in message
> news:e%23gl3EseIHA.4684@TK2MSFTNGP06.phx.gbl...
>> It's not OE window, it's XP window.
>>
>> "Jan Bucek" <bucek.jan@post.cz> wrote in message
>> news:%23CtpTJieIHA.6136@TK2MSFTNGP03.phx.gbl...
>>> Leonid napsal(a):
>>>> This problem doesn't arise in Win2000. It was introduced in XP for
>>>> "security reasons".
>>>
>>> I think the OE ver. 6. is the same for 2K or XP.
>>>
>>>>
>>>>
>>>> "Jan Bucek" <bucek.jan@post.cz> wrote in message
>>>> news:uSCwAjfeIHA.748@TK2MSFTNGP04.phx.gbl...
>>>> Hi,
>>>> I have configured OE and tested it. My app sends e-mail thru MAPI with
>>>> OutlookExpress as default mail-client. It runs O.K., without any message
>>>> or question from OE (only a small send-window of OE flashes momently).
>>>> My message is saved in "sent" folder of OE and it is delivered to a
>>>> recipient.
>>>>
>>>> I have Win2000 SP4, OE ver. 6, all patches applied.
>>>> To send messages from VFP thru MAPI I use excellent class MAPImail from
>>>> www.nbcsoftware.com
>>>>
>>>> I think you are to check all Options of OE, first of all "Security" Page
>>>> of "Options".
>>>>
>>>> Willianto napsal(a):
>>>>> Hi there,
>>>>>
>>>>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog
>>>>> box shows up, and the user would have to press Send to actually _send_
>>>>> the mail.
>>>>>
>>>>> Anybody knows how to automate this?
>>>>>
>>>>> TIA,
>>>>> Willianto
>>>>>
>>>>> p.s. I know there are lots of options from AutomatedEmail topic in
>>>>> fox.wikis. Just hope that MAPI-ways would work.
>>>>>
>>
>
>

Re: Can myApps ask MAPI to Press Send instead of ask the user to press it? by Willianto

Willianto
Mon Mar 03 02:49:58 CST 2008

Hi Jan:

Thanks for your reply. I did try your suggestion and found the checkbox on
the Tools | Options on the OE. The OE doesn't warn me anymore. It just
simply said that 'my_message_subject' has been sent successfully, which I
easily 'kill' with Windows Task Scheduler Options.

Problem is, now Windows refused to execute MAPI while it is on the log off
state (Windows 2003 Server SP2). I post the problem on other post here in
this ng and hope to have the solution. Hopefully you can chime in there as
well.

Thanks again!
WBR,

:)
Willianto
"Jan Bucek" <bucek.jan@post.cz> wrote in message
news:O69M6o8eIHA.6136@TK2MSFTNGP03.phx.gbl...
> HerbertDB napsal(a):
>> In OE, go to TOOLS menu, then select OPTIONS.
>> In the security TAB uncheck "Warn me when other apps try to send mail as
>> me"
>
>
> Just this I tried to tell to Willianto, but for I have czech version of
> Win and OE, I was not able to describe exactly which options to check.
>
>>
>>
>>
>> "Leonid" <leonid at grada dot lv> wrote in message
>> news:e%23gl3EseIHA.4684@TK2MSFTNGP06.phx.gbl...
>>> It's not OE window, it's XP window.
>>>
>>> "Jan Bucek" <bucek.jan@post.cz> wrote in message
>>> news:%23CtpTJieIHA.6136@TK2MSFTNGP03.phx.gbl...
>>>> Leonid napsal(a):
>>>>> This problem doesn't arise in Win2000. It was introduced in XP for
>>>>> "security reasons".
>>>>
>>>> I think the OE ver. 6. is the same for 2K or XP.
>>>>
>>>>>
>>>>>
>>>>> "Jan Bucek" <bucek.jan@post.cz> wrote in message
>>>>> news:uSCwAjfeIHA.748@TK2MSFTNGP04.phx.gbl...
>>>>> Hi,
>>>>> I have configured OE and tested it. My app sends e-mail thru MAPI with
>>>>> OutlookExpress as default mail-client. It runs O.K., without any
>>>>> message
>>>>> or question from OE (only a small send-window of OE flashes momently).
>>>>> My message is saved in "sent" folder of OE and it is delivered to a
>>>>> recipient.
>>>>>
>>>>> I have Win2000 SP4, OE ver. 6, all patches applied.
>>>>> To send messages from VFP thru MAPI I use excellent class MAPImail
>>>>> from
>>>>> www.nbcsoftware.com
>>>>>
>>>>> I think you are to check all Options of OE, first of all "Security"
>>>>> Page
>>>>> of "Options".
>>>>>
>>>>> Willianto napsal(a):
>>>>>> Hi there,
>>>>>>
>>>>>> My application sends an e-mail thru MAPI. Problem is, the MAPI dialog
>>>>>> box shows up, and the user would have to press Send to actually
>>>>>> _send_ the mail.
>>>>>>
>>>>>> Anybody knows how to automate this?
>>>>>>
>>>>>> TIA,
>>>>>> Willianto
>>>>>>
>>>>>> p.s. I know there are lots of options from AutomatedEmail topic in
>>>>>> fox.wikis. Just hope that MAPI-ways would work.
>>>>>>
>>>
>>