N°3169 - Add feature to connect Gsuite mail box with OAuth

N°2504 - Add feature to connect Office mail box with OAuth2 for Microsoft Graph
 * Fix legacy mailboxes compatibility
This commit is contained in:
Eric Espie
2022-05-23 12:09:40 +02:00
parent a6580e3cd8
commit 754946bf62
7 changed files with 79 additions and 25 deletions

View File

@@ -25,13 +25,14 @@
*/
use Combodo\iTop\Core\Email\EmailFactory;
use Combodo\iTop\Core\Email\iEMail;
define ('EMAIL_SEND_OK', 0);
define ('EMAIL_SEND_PENDING', 1);
define ('EMAIL_SEND_ERROR', 2);
class EMail
class EMail implements iEMail
{
protected $oMailer;
@@ -42,7 +43,7 @@ class EMail
public function __construct()
{
$this->oMailer = EmailFactory::GetMailer();
$this->oMailer = EmailFactory::GetMailer($this);
}
/**