PC SOFT

PROFESSIONAL NEWSGROUPS
WINDEVWEBDEV and WINDEV Mobile

Home → WINDEV 2024 → Wait Till Email App Is Closed?
Wait Till Email App Is Closed?
Started by Justin McCartney, Feb., 03 2017 10:29 PM - 2 replies
Posted on February, 03 2017 - 10:29 PM
So I am opening the email app with EmailOpenMail() and that works fine, but it is in a loop for each customer and I don't want it to open the next Email until we close the last one. How do you do that?

Also, is there a way to automatically send an email through the email app?
Posted on February, 04 2017 - 11:54 AM
Hi Justin,


Le 2/3/2017 à 4:29 PM, Justin McCartney a écrit :
So I am opening the email app with EmailOpenMail() and that works fine,
but it is in a loop for each customer and I don't want it to open the
next Email until we close the last one. How do you do that?



I haven't tried that specific situation, but I would think that the lose
focus and get focus event code area of your window should be activated
when you activate the email app and when you come back.

Also, is there a way to automatically send an email through the email app?


No, it's a security built into the OS.

To do that, you need to use a webservice relaying you to a regular smtp
account.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com
Posted on February, 06 2017 - 9:33 PM
Fabrice Harari wrote:
Hi Justin,


Le 2/3/2017 à 4:29 PM, Justin McCartney a écrit :
So I am opening the email app with EmailOpenMail() and that works fine,
but it is in a loop for each customer and I don't want it to open the
next Email until we close the last one. How do you do that?


I haven't tried that specific situation, but I would think that the lose
focus and get focus event code area of your window should be activated
when you activate the email app and when you come back.

Also, is there a way to automatically send an email through the email app?

No, it's a security built into the OS.

To do that, you need to use a webservice relaying you to a regular smtp
account.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com


I tried using the focus loss and focus gain code but it doesn't work. It only seems to notify focus loss if you minimize the program, not when something else is on top of it.