PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Action of EmailOpenMail
  • In which code should I use EmailOpenMail?
  • Special cases
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 Note: EmailRunApp can also be used to directly open the messaging software of the phone. We recommend that you use EmailRunApp (to manage the attachments, the multi-recipient sending, ...).
Versions 17 and later
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
New in version 17
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available for the Windows Phone applications.
iPhone/iPad This function is now available for the iPhone/iPad applications.
Android This function is now available for the Android applications.
Universal Windows 10 App This function is now available for the 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 19 and later
WINDEVWindows This function is now available for the WINDEV applications in Windows.
New in version 19
WINDEVWindows This function is now available for the WINDEV applications in Windows.
WINDEVWindows This function is now available for the WINDEV applications in Windows.
Versions 21 and later
WINDEVUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
New in version 21
WINDEVUniversal Windows 10 App This function is now available in Universal Windows 10 App mode.
WINDEVUniversal 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. The non-alphanumeric characters are automatically converted in order to allow for special characters to be passed (CR characters, tabulations, ...).
Remarks
WEBDEV - Browser code

Action of EmailOpenMail

EmailOpenMail triggers an action on the page displayed in the browser of Web user. However, the Internet browsers allow a single action on the page per process.
For example, if a process performs the following actions:
  1. Sending a page to the server (PageSubmit).
  2. Opening the messaging software (EmailOpenMail).
Only the last action (opening the messaging software) will be performed.
WEBDEV - Browser code

In which code should I use EmailOpenMail?

In WEBDEV, some types of buttons automatically trigger an action on the page:
  • "submit" button,
  • "other" button whose action differs from "none".
If EmailOpenMail is used in the browser click code of these buttons (or in a procedure called by this process), this function will be ignored: only the action of the button will be performed.
Consequences: EmailOpenMail cannot be used in a code triggering an action (automatically or not). This function is ignored:
  • in the click code of a "send to server" button.
  • in the click code of an "other" button whose action differs from "none".
  • if it is followed by PageSubmit or by EmailOpenMail (in the current process, in a procedure called by the current process or in another process called by Execute).
To use EmailOpenMail in a button (browser click code of button), this button must have the following characteristics:
  • type of button: "Other".
  • action: "None".
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.
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
- ...
Components
WINDEV wd230com.dll
WEBDEV - Browser code WDJS.DLL
Android wd230android.jar
Minimum required version
  • 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
Dec. 20 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
Oct. 17 2016