Hello, I have problems sending email. Authentication method Use a OAUTH token

used Dolibarr 20.0.1

Hello, I have problems sending email.

Authentication method Use a OAUTH token

It already generates the token without problem annex photos


but when sending email it shows an error

I hope you can help me,

I already debugged and it is on this line

		$_retVal = $this->socket_send_str('AUTH XOAUTH2 '.base64_encode($initRes), '235');

So do I. I had it working in 18.0.5 and then I’ve upgraded my container to 20.0.1

Some differences:

  • I use google, not microsoft
  • I reject self-signed certificates - so should you for security reasons

Looking at your error message, I notice that it says: doli20.local and that makes me wonder if Microsoft doesn’t want to talk to you because you don’t use a Fully Qualified Domain Name?

Hi,
try activating the last 2 scopes, i also have offline_access.
I have not enabled Allow selfsigned certificate.
Your Token expired, ist it working!

tengo otro desarrollo para poder traer los correos y task de. teams. y no me causa problemas

last 2 scopes. actrivated

Hi,
do you receive E-Mails?

no, not receive emails

Gold Morning,
I am still a little confused about your token, because your redirect url doli20.local seems not valid, and your token is expired, do you have a screenshot with a token bot expired?
Also try to get a valid url which directs to your doli installation.

I use mamp pro. For this purpose it generates me. the certificate and everything necessary as if it were domain. That’s why I showed them that with an api that I generated separately it did bring me the emails to check the connection, BUT in the end I only need to send emails from Dolibarr with that exchage office 365 email. and it doesn’t stop there,

I have created the permissions correctly. coherence in azure etc