ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
Used to configure WLanguage email management functions.
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 websites.
Example
// Enable the multi-platform implementation
EmailConfigure(emailParameterMode, 1)
Syntax
EmailConfigure(<Option> , <Option value>)
<Option>: Integer constant
Option to define:
emailParameterHTMLWhen 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.
emailParameterModeUsed to choose the operating mode of emails.
  • If <Option value> is set to 0, the email functions will use the WinInet module:
    • for IMAP, POP3 and SMTP protocols in SSL mode (optionSSL or optionTLS constant)
    • in STARTTLS mode (emailOptionSecuredTLS or emailProtocolSMTPS constant).
    This mode corresponds to the default operating mode of functions for email management.
  • If <Option value> is set to 1, the email functions will use an implementation that supports multiple platforms. Therefore, the email management is the same for your Windows, Linux and mobile platforms (Android/iOS).
<Option value>: Integer
New value of the option.
Component: wd300com.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

Last update: 01/30/2024

Send a report | Local help