PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Special cases
  • Application in the background: Android 10 specific case
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
EmailOpenMail (Function)
In french: EmailOuvreMessagerie
Opens the default messaging software:
  • of Web user on the browser computer.
  • Versions 18 and later
    of the user on the current Windows computer.
    New in version 18
    of the user on the current Windows computer.
    of the user on the current Windows computer.
  • Versions 17 and later
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App on the phone.
    New in version 17
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App on the phone.
    AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App on the phone.
AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App Remark: EmailRunApp can also be used to directly open the messaging software of the phone. It is recommended to use EmailRunApp (to manage attachments, send to multiple recipients, etc.).
Versions 17 and later
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
iPhone/iPad This function is now available for iPhone/iPad applications.
Android This function is now available for Android applications.
Universal Windows 10 App This function is now available for Windows Phone applications.
Versions 18 and later
Android Widget This function is now available in Android Widget mode.
New in version 18
Android Widget This function is now available in Android Widget mode.
Android Widget This function is now available in Android Widget mode.
Versions 21 and later
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Universal Windows 10 App This function is now available in Universal Windows 10 App mode.
Example
// Opens the messaging software
EmailOpenMail()
 
// Opens the software and specifies the email recipient
// the subject and the text of email
EmailOpenMail("pcsoft@WINDEV.com", ...
"Subject: LST", "Text: The LST summary")
 
Syntax
EmailOpenMail([<Email address> [, <Email subject> [, <Message body>]]])
<Email address>: Optional character string with quotes
Email address of recipient. This address will be displayed in the window of messaging software.
<Email subject>: Optional character string with quotes
Email subject that will be displayed in the window of messaging software.
<Message body>: Optional character string with quotes
Text of message. Non-alphanumeric characters are automatically converted in order to allow for special characters to be passed (CR characters, tabulations, ...).
Remarks
Versions 17 and later

Special cases

  • A non-fatal error is triggered if no application for sending emails is found on the device. To find out whether the application for sending emails failed to start, use the ErrorOccurred variable.
  • AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App EmailOpenMail can be used in the emulator. It cannot be used in the simulator.
  • EmailOpenMail is a non-locking function. The code that follows the call to this function will continue to run as soon as the application for sending emails is started.
  • There is no way to find out whether the sending of the email was validated by the user.
New in version 17

Special cases

  • A non-fatal error is triggered if no application for sending emails is found on the device. To find out whether the application for sending emails failed to start, use the ErrorOccurred variable.
  • AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App EmailOpenMail can be used in the emulator. It cannot be used in the simulator.
  • EmailOpenMail is a non-locking function. The code that follows the call to this function will continue to run as soon as the application for sending emails is started.
  • There is no way to find out whether the sending of the email was validated by the user.

Special cases

  • A non-fatal error is triggered if no application for sending emails is found on the device. To find out whether the application for sending emails failed to start, use the ErrorOccurred variable.
  • AndroidAndroid Widget iPhone/iPadUniversal Windows 10 App EmailOpenMail can be used in the emulator. It cannot be used in the simulator.
  • EmailOpenMail is a non-locking function. The code that follows the call to this function will continue to run as soon as the application for sending emails is started.
  • There is no way to find out whether the sending of the email was validated by the user.
Versions 25 and later
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
EmailOpenMail can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
New in version 25
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
EmailOpenMail can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
AndroidAndroid Widget

Application in the background: Android 10 specific case

From Android 10, it is no longer possible to open a window when the application is in the background.
EmailOpenMail can open a window. If this function is used while the application is in the background, a fatal error will occur.
Tips:
  • It is possible to determine if the application is in the background using InBackgroundMode.
  • If an application needs to interact with the user while it is in the background, the solution is to display a notification (via the Notification type). When the notification is clicked on, the application will be brought back to the foreground if ..ActivateApplication is set to True. It is also possible to open a window from the procedure passed to ..ActionClick.
Related Examples:
WM Managing Contacts Cross-platform examples (WINDEV Mobile): WM Managing Contacts
[ + ] This example presents the management of contacts for Android et iOS.
It is used o:
- list the contacts found on the phone
- call the contacts
- send SMSs to the contacts
- ...
Component : wd250com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
EmailOpenMail
//Opens the default messaging software:
//Abre o software de mensagens padrão:

EmailOpenMail(EDT_email,EDT_assunto,EDT_messagem)

//Exemplo Blog e Video - Nova Gravação
http://windevdesenvolvimento.blogspot.com.br/2016/12/aula-1002-windevmobile-76-emailopenmail.html
https://www.youtube.com/watch?v=a4JevL5s-xc
De matos
20 Dec. 2016
Exemplo EmailOpenMail
Exemplo EmailOpenMail

EmailOpenMail(EDT_email,EDT_assunto,EDT_messagem)

//Blog com Video e Exemplo

http://windevdesenvolvimento.blogspot.com.br/2016/10/aula-943-windev-email-1-emailopenmail.html

https://www.youtube.com/watch?v=BxI-CrU19-Y
De matos
17 Oct. 2016