PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 21 → Wait Till Email App Is Closed?
Wait Till Email App Is Closed?
Débuté par Justin McCartney, 03 fév. 2017 22:29 - 2 réponses
//hostimage.webdev.info/avatars/default.gif
Posté le 03 février 2017 - 22:29
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?
//hostimage.webdev.info/avatars/default.gif
Posté le 04 février 2017 - 11:54
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
//hostimage.webdev.info/avatars/default.gif
Posté le 06 février 2017 - 21:33
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.