mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°5102 - Allow to send emails using GSuite SMTP and OAuth - Rework
This commit is contained in:
@@ -137,7 +137,7 @@ function CheckEmailSetting($oP)
|
||||
$sUserName = MetaModel::GetConfig()->Get('email_transport_smtp.username');
|
||||
$sDisplayUserName = empty($sUserName) ? '<em>no user</em> ' : $sUserName;
|
||||
try {
|
||||
$oRemoteAuthentOAuth = OAuthClientProviderFactory::GetRemoteAuthentOAuthForSMTP();
|
||||
$oRemoteAuthentOAuth = OAuthClientProviderFactory::GetOAuthClientForSMTP();
|
||||
$sLink = MetaModel::GetHyperLink(get_class($oRemoteAuthentOAuth), $oRemoteAuthentOAuth->GetKey());
|
||||
$oP->info("The connection used is: $sLink");
|
||||
$sProvider = $oRemoteAuthentOAuth->Get('provider');
|
||||
|
||||
Reference in New Issue
Block a user