AYUDA EN LÍNEA
 WINDEVWEBDEV Y WINDEV MOBILE

Ayuda / WLanguage / Funciones WLanguage / Comunicación / Gestión de correos electrónicos
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
Populates a variable of type Email using the content of its Source property. Remark: This function can be used to read an .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 has been populated,
  • False otherwise. If an error occurs, the ErrorOccurred variable is set to True.
    To get more details on the error, use ErrorInfo 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 be 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.
  • If the project configuration uses ANSI strings at runtime, characters are converted to "latin1" by default, regardless of the "charset" specified in the HTML part of the email. If UNICODE is used at runtime, characters are not converted. To avoid converting to ANSI and keep the encoding of the "charset" specified in the HTML part of the email, use EmailConfigure with the emailParameterHTML constant :
EmailConfigure(emailParameterHTML, True)
Component: wd290com.dll
Versión mínima requerida
  • Versión 24
Comentarios
Haga clic en [Agregar] para publicar un comentario

Última modificación: 21/06/2023

Señalar un error o enviar una sugerencia | Ayuda local