PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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
Adds an attached file to an email.
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 find out the error details, use ErrorInfo.
<Email>: Email variable
Name of the Email variable to which the file must be attached.
<File name and path>: Character string (with quotes)
Name and full (or relative) path of the file to attach. A UNC path can be used. No wildcard character can be used (* or?).
Component : wd250com.dll
Minimum version required
  • Version 15
This page is also available for…
Comments
Video Envio Email
https://youtu.be/4MgvoehKwbo
amarildo
26 Dec. 2018