PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV 22 feature!
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 the WEBDEV sites in Windows.
New in version 23
WEBDEV - Server codeWindows This function is now available for the WEBDEV sites in Windows.
WEBDEV - Server codeWindows This function is now available for the 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).
<Option Value>: Integer
New value of option.
Components
WINDEVWEBDEV - Server codeReports and Queries wd230com.dll
Minimum required version
  • Version 22
This page is also available for…
Comments
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
Oct. 29 2017