ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Web-specific functions / Browser functions
  • Special cases
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
EmailOpenMail (Function)
In french: EmailOuvreMessagerie
Opens the default messaging software:
  • of Web user on the browser computer.
  • of the user on the current Windows computer.
  • Universal Windows 10 App on the phone.
Universal 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.).
Example
// Opens the messaging software
EmailOpenMail()
// Opens the software and specifies the email recipient
// the subject and text of the email
EmailOpenMail("pcsoft@windev.com", "Subject: LST", "Text: The LST summary")
Syntax
EmailOpenMail([<Email address> [, <Email subject> [, <Message body>]]])
<Email address>: Optional character string
Email address of recipient. This address will be displayed in the window of messaging software.
<Email subject>: Optional character string
Email subject that will be displayed in the window of messaging software.
<Message body>: Optional character string
Text of message. Non-alphanumeric characters are automatically converted in order to allow for special characters to be passed (CR characters, tabulations, ...).
Remarks

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.
  • Universal Windows 10 App EmailOpenMail can be used in the emulator. It cannot be used in the simulator.
  • EmailOpenMail is a non-blocking 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.
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: wd290com.dll
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/22/2023

Send a report | Local help