Oauth Office 365 and email collector

Hi,
i have no PHP Warnings with my actual 19.0.0 Version PHP 7.4.33, also the mails are now being moved into archiv folder, my only problems are, no mail attachments in the ticket´s, i am using the same oauth service for both send and receive.

1 Like

Ciao,

Now with the new version 19.0 I use the standard Oauth for sending/smtp.

If you need other info feel free to ask.

Ciao

1 Like

Hi,

Thank you for this thread.
I try to configure only SMTP part.
The Oauth token part is ok but I cannot send mail. I’m facing “Authenticator XOAUTH2 returned Expected response code 235 but got code ‘535’, with message '535 5.7.3 Authentication unsuccessful” when I try to send with “Swift Mailer socket library”, and also “Response: 535 5.7.3 Authentication unsuccessful” when I try with “SMTP/SMTPS socket library”…

What I missed ? :face_with_monocle:

Can you share me your Email configuration ?

Hi,
what Dolibarr Version do you have?

Jason.

It’s 19.0.1.
Since there, I succeed to connect via OAuth but can you confirm that we can connect only a single account to send mail (and so sent messages are stored in that account only) ?

Hi,
i am on 19.0.2, i use a single account but the recipients receive different adresses e.g. for tickets or bills, you are right that all sent mails are stored in the sent account which is the owner of the accounts tickets and bills (both shared accounts).
Curios that the e-mail collector for tickets is moving the mails to the correct Archive folder of the Ticket account.
My problem since 19.0.1 is that the e-mail colletor is not receiving attachments.

I’ve not played yet with mail collector but it will come soon so I’ll get back to you :wink:

Hi @JeremyF,

Did you manage to send mails ? I’m encountering the same problem :

BlockquoteExpected response code 250 but got code ‘530’, with message '530 5.7.57 Client not authenticated to send mail.

The Oauth2 tocken part is also working for me and the azure application does have the rights to send mails.

Hi,
are you using the right smtp-user, it should be the same as in the azure application, i did not get it working with a shared mailbox.

Hi @Plows,
Yes, it’s the same smtp-user, same email adress.

Hi,
Yes it was working for me.
What Dolibarr version ?

Hi @JeremyF,

I tried on several version, 18, 19.0.1, 19.0.2, 19.0.3.

I no longer have access to the environment with this configuration, but with version 19.0.1 and the mail address consistent between the OAuth and the sender it should be fine.