PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
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
Allows you to configure the WLangage functions for email management.
This function is useful if you are using a multi-platform code. This allows you to use the same management mode of emails for your Windows and Linux applications, for your mobile applications (Android/iOS) and for your WEBDEV sites.
Versions 23 and later
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
New in version 23
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is now available for WEBDEV sites in Windows.
Example
// Enable the multi-platform implementation
EmailConfigure(emailParameterMode, 1)
 
Syntax
EmailConfigure(<Option> , <Option value>)
<Option>: Integer constant
Option to define:
emailParameterModeUsed to choose the operating mode of emails.
  • If <Option value> is set to 0, the functions for email management use the "wininet" module of Windows for the IMAP, POP3 and SMTP protocols in SSL mode (optionSSL constant) or in STARTTLS mode (emailOptionSecuredTLS constant). This mode corresponds to the default operating mode of functions for email management.
  • If <Option value> is set to 1, the functions for email management use an implementation that supports the multi-platform. Therefore, the email management is the same for your Windows, Linux and mobile platforms (Android/iOS).
Versions 25 and later
emailParameterHTML
New in version 25
emailParameterHTML
emailParameterHTML
When reading mails from a POP or IMAP server, the HTML part consists of a header and the HTML content itself. The charset that indicates the character encoding (UTF-8, ISO 8859-1, ISO-xxxx, etc.) can be in either or both of these parts.
  • If <Option value> is set to 0 (default value), the email functions will only use the charset specified in the email header to handle the HTML content.
  • If <Option value> is set to 1, the email functions will use the charset specified in the email header to handle the HTML content, if no charset has been specified in the HTML part itself. In some cases, this avoids display errors on accented and special characters.
<Option value>: Integer
New value of option.
Component : wd250com.dll
Minimum version required
  • Version 22
This page is also available for…
Comments
Video Envio Email
https://youtu.be/4MgvoehKwbo
amarildo
26 Dec. 2018
ERRO CERTIFICACAO ARRUMADO
EmailConfigure(emailParameterMode,1)
// ESSA CONFIGURACAO ACIMA ARRUMA ERRO CERTIFICACAO
EmailSetTimeOut(30)
HourGlass()
n_email_sessao is boolean=EmailStartSMTPSession(EDT_USUARIO,EDT_SENHA,EDT_SERVIDOR_SMTP,EDT_porta,False,emailOptionSecuredTLS)
IF n_email_sessao=True THEN
_minha_mensagem is an Email // est un Email
_minha_mensagem..Sender=EDT_EmailSender
Add(_minha_mensagem..Recipient, EDT_destinatario)
_minha_mensagem..Subject = EDT_ASSUNTO
_minha_mensagem..Message = EDT_MENSAGEM
_minha_mensagem..SenderAddress = EDT_EmailSender
_minha_mensagem..ReturnReceipt = True
EmailLoadAttachment(_minha_mensagem,EDT_anexo)
IF EmailSendMessage(EDT_USUARIO, _minha_mensagem) = False THEN
Info("Erro Mandar Mesnagem:"+CR+ErrorInfo())
END
EmailCloseSession(EDT_USUARIO)
END
HourGlass(False)
// blog com video e exemplo
// http://windevdesenvolvimento.blogspot.com.br/2017/10/aula-1277-email-3-erro-certificacao.html
// https://www.youtube.com/watch?v=LxqfFegkGqo
De matos
29 Oct. 2017