PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Timeout
  • Required application feature
  • Gmail: What to do if a connection to Gmail (SMTP, IMAP, POP3) fails with a certificate error?
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
Starts a session for managing emails via the IMAP protocol.
Versions 22 and later
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
New in version 22
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Android This function is now available for Android applications.
Example
// Ouverture d'une session d'emails gérés par le protocole IMAP
MaSessionIMAP is emailIMAPSession
 
IF MaSessionIMAP.StartSession() = True THEN
NomUser = MaSessionIMAP.Name
ELSE
NomUser = ""
Error("Impossible d'établir la connexion")
END
Syntax
<Result> = <IMAP session>.OpenSession()
<Result>: Boolean
  • True if the session was started,
  • False otherwise. In case of error, the Variable ErrorOccurred is to True.
    To get the details of the error, use ErrorInfo with the errMessage constant.
<IMAP session>: emailIMAPSession variable
Name of the emailIMAPSession variable corresponding to the email session to handle.
Remarks

Timeout

The timeout can be set using EmailSetTimeOut.
Versions 21 and later
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Family and corporate networks
This feature allows the applications to use incoming and outgoing accesses to the family and corporate networks.
New in version 21
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Family and corporate networks
This feature allows the applications to use incoming and outgoing accesses to the family and corporate networks.
Universal Windows 10 App

Required application feature

When this function is used, an application feature is declared in the application generation wizard.
Required feature: Family and corporate networks
This feature allows the applications to use incoming and outgoing accesses to the family and corporate networks.

Gmail: What to do if a connection to Gmail (SMTP, IMAP, POP3) fails with a certificate error?

Since August 2017, a new certificate was deployed by Google: Google Internet Authority G3. Unfortunately, the Windows API for checking certificates does not validate this certificate.
Therefore, starting a POP3, IMAP or SMTP session may fail with the error "The certificate string was not issued by a trusted authority".
To validate the certificate, all you have to do is modify the management mode of emails. The WLanguage EmailConfigure function allows you to change this mode and to no longer use the Windows API that locks this certificate. The following code must be added before starting the session via <emailIMAPSession variable>.StartSession:
// Activation de l'implémentation multi-plateforme
EmailConfigure(emailParameterMode, 1)
Remark: From version 23 Update 1, the call to EmailConfigure is not required anymore: WLanguage is automatically using the management mode of emails adapted to the session.
Component: wd270com.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment