ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / Developing an application or website / Controls, windows and pages / Controls: Available types / Rich Text Area control
  • Connecting to an IMAP server by using an emailIMAPSession variable
  • Connecting to a secure SMTP server
EmailStartSession (Example)
Connecting to an IMAP server by using an emailIMAPSession variable
// Le compte IMAP est défini chez Gmail
gSessionIMAP is emailIMAPSession
gSessionIMAP.ServerAddress = "imap.gmail.com"
gSessionIMAP.Name = "utilisateur@gmail.com"
gSessionIMAP.Password = "secret"
gSessionIMAP.Port = 993
gSessionIMAP.Option = optionTLS
 
// Ouverture de la session Gmail
IF EmailStartSession(gSessionIMAP) = False THEN
// Echec de l'ouverture
ErrorInfo(errFullDetails)
END
Connecting to a secure SMTP server
// Il s'agit dans cet exemple d'un serveur Gmail
 
// Session SMTP sécurisée
gSessionSMTP is emailSMTPSession
gSessionSMTP.ServerAddress = "smtp.gmail.com"
gSessionSMTP.Name = "utilisateur@gmail.com"
gSessionSMTP.Password = "secret"
gSessionSMTP.Port = 587
gSessionSMTP.Option = emailProtocolSMTPS
 
// Ouverture de la session
IF EmailStartSession(gSessionSMTP) = False THEN
Error(ErrorInfo(errFullDetails))
END
Minimum version required
  • Version 15
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/29/2023

Send a report | Local help