ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Your version: XXA190056S

Help / WLanguage / WLanguage functions / Communication / Managing emails
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
Adds an attached file to an email.
Versions 21 and later
Universal Windows 10 App This function is now available for Universal Windows Platform applications.
Versions 22 and later
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Example
// Add a file into the attachments of an email
MyMessage is Email
EmailLoadAttachment(MyMessage, ...
SysDir(srMyDocuments) + ["\"] + "Yearly Report.pdf")
Syntax
<Result> = EmailLoadAttachment(<Email> , <File name and path>)
<Result>: Integer
  • Rank of the file in the array of attached files (Email.Attach variable),
  • -1 if an error occurred. To get more details on the error, use ErrorInfo.
<Email>: Email variable
Name of the Email variable to which the file must be attached.
<File name and path>: Character string
Name and full (or relative) path of the file to attach. A UNC path can be used. You can use wildcard characters ("*" or "?").
Component: wd290com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help