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
<Email variable>.ImportSource (Function)
In french: <Variable Email>.ImporteSource
Fills an Email variable from the content of its ..Source property. Remark: This function can be useful to read a .eml file (generated by Outlook Express).
Example
MyEmail is Email
 
// Read the .eml file
MyEmail.Source = fLoadText("c:\MyEmails\Test.eml")
IF MyEmail.ImportSource() = True THEN
Info("The test.eml file was imported")
END
Syntax
<Result> = <Email>.ImportSource()
<Result>: Boolean
  • True if the Email variable was filled,
  • False otherwise. The ErrorOccurred variable is set to True if an error occurred.
    To find out the error details, use ErrorInfo associated with the errMessage constant.
The generated code can be read in the ..Source property of the Email variable used.
<Email>: Email variable
Name of the Email variable corresponding to the email to initialize.
Remarks
  • To generate the source code of the email to send from the ..Source property of the Email variable, use <Email variable>.BuildSource.
  • The files in MSG format (generated by MS Outlook) are not automatically imported.
  • The source of the email must use the CR separator to mark the end of lines, including in Linux.
Component : wd250com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment