in know it's old but have you find any workaround ?
i try a lot but was not able to get it wroking
and still use smtp.
// email_transport: Mean to send emails: PHPMail (uses the function mail()), SMTP (implements the client protocol) or SMTP_OAuth (connect to the server using OAuth 2.0)
// default: 'PHPMail'
'email_transport' => 'SMTP',
// email_transport_smtp.encryption: tls or ssl (optional)// default: '''email_transport_smtp.encryption'=>'tls',// email_transport_smtp.host: host name or IP address (optional)// default: 'localhost''email_transport_smtp.host'=>'smtp.office365.com',// email_transport_smtp.password: Authentication password (optional)// default: '''email_transport_smtp.password'=>'yourpassword',// email_transport_smtp.port: port number (optional)// default: 25'email_transport_smtp.port'=>587,// email_transport_smtp.username: Authentication user (optional)// default: '''email_transport_smtp.username'=>'yourmail',
Hi,
i try to send E-Mails using Oauth2 Microsoft SMTP.
that is my iTop Mail Config:
That is what Microsoft needs to Authenticate against SMTP:
The Answer i get on Mail Test is:
i think the library does not support STARTTLS as Auth.
is there someone getting Microsoft SMTP Oauth to work?
Thanks!
in know it's old but have you find any workaround ?
i try a lot but was not able to get it wroking
and still use smtp.
// email_transport: Mean to send emails: PHPMail (uses the function mail()), SMTP (implements the client protocol) or SMTP_OAuth (connect to the server using OAuth 2.0)
// default: 'PHPMail'
'email_transport' => 'SMTP',
dont forget to add smtp auth to your user
https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/authenticated-client-smtp-submission
Do you have more info on your case, Remi?
An exact error message, or does it just keep spinning or ...?
Did you properly set up the OAuth 2.0 client?