From baaa4474f96a81d85563272108c5dfdf5383c06a Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Tue, 13 Dec 2022 10:01:57 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B05102=20-=20Allow=20to=20send=20emails=20?= =?UTF-8?q?using=20GSuite=20SMTP=20and=20OAuth=20-=20cleanup=20unnecessary?= =?UTF-8?q?=20include?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sources/Core/Email/EmailLaminas.php | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/sources/Core/Email/EmailLaminas.php b/sources/Core/Email/EmailLaminas.php index e06e2f5cc..c67da6760 100644 --- a/sources/Core/Email/EmailLaminas.php +++ b/sources/Core/Email/EmailLaminas.php @@ -1,29 +1,10 @@ - - /** * Send an email (abstraction for synchronous/asynchronous modes) * - * @copyright Copyright (C) 2010-2021 Combodo SARL + * @copyright Copyright (C) 2010-2022 Combodo SARL * @license http://opensource.org/licenses/AGPL-3.0 */ -@include APPROOT."/core/oauth.php"; use Combodo\iTop\Core\Authentication\Client\OAuth\OAuthClientProviderFactory; use Laminas\Mail\Header\ContentType; @@ -81,9 +62,6 @@ class EMailLaminas extends Email * @param string $sSerializedMessage The serialized representation of the message * * @return \EMail - * @throws \ArchivedObjectException - * @throws \CoreException - * @throws \Symfony\Component\CssSelector\Exception\SyntaxErrorException */ public static function UnSerializeV2($sSerializedMessage) { @@ -378,12 +356,12 @@ class EMailLaminas extends Email * * @param $sBody * @param string $sMimeType - * @param $sCustomStyles + * @param null $sCustomStyles * * @return void * @throws \ArchivedObjectException * @throws \CoreException - * @throws \Symfony\Component\CssSelector\Exception\SyntaxErrorException + * @throws \Symfony\Component\CssSelector\Exception\ParseException */ public function SetBody($sBody, $sMimeType = Mime::TYPE_HTML, $sCustomStyles = null) {