PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
  • Special cases
  • Members of the Email structure taken into account
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
EmailRunApp (Function)
In french: EmailLanceAppli
Starts the native application for sending emails found on the current computer:
  • Computer running Windows (using the MAPI client),
  • Mobile device: Android, iPhone, iPad, Universal Windows 10.
The content and the recipients of the email are initialized from the information specified in the Email structure of WLanguage.
Caution:
  • The application for sending emails found on the current computer must have been configured with a valid account for sending emails (SMTP).
  • The current directory can be modified according to the configuration of the application for sending emails.
Versions 19 and later
Windows This function is now available for the WINDEV applications in Windows.
New in version 19
Windows This function is now available for the WINDEV applications in Windows.
Windows This function is now available for the WINDEV applications in Windows.
Example
// Send a message with attachment
Email.Recipient[1] = "recipient@email.com"
Email.NbRecipient = 1
Email.Subject = "Subject of message"
Email.Message = "Text of the message"
Email.Attach[1] = "/sdcard/photo.jpg"
Email.NbAttach = 1
EmailRunApp()
Syntax
EmailRunApp()
Remarks

Special cases

  • A non-fatal error is triggered if no application for sending emails is found on the current computer. To find out whether the application for sending emails failed to start, use the ErrorOccurred variable.
  • To reinitialize the Email structure, use EmailReset.
  • EmailRunApp 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.

Members of the Email structure taken into account

Related Examples:
WM Expense Account Cross-platform examples (WINDEV Mobile): WM Expense Account
[ + ] This example allows you to manage your fees.

Let's see the main features of this application:
- The input of invoices
- Management of foreign currencies
- Inclusion of photo document for the invoices
- Ability to email the expense account
- Ability to track the expense accounts
- ...
Component : wd250com.dll
Minimum version required
  • Version 16
This page is also available for…
Comments
Video EmailRunApp
https://youtu.be/ahc4D0G_nD8


https://windevdesenvolvimento.blogspot.com/2019/07/dicas-2183-windev-webdev-mobile-webdev.html
amarildo
06 Jul. 2019
Video EmailRunApp
ps://youtu.be/fm4ZFuPNpB8

https://windevdesenvolvimento.blogspot.com/2019/02/dicas-2028-windev-mobile-aula-109.html

Email.Recipient[1] = "amarildo.matos@gmail.com "
Email.NbRecipient = 1
Email.Subject = "Assunto"
Email.Message = "messagem"
//Email.Attach[1] = "/sdcard/photo.jpg"
//Email.NbAttach = 1
EmailRunApp()
amarildo
27 Feb. 2019