I have already configured to send, however I get the following error when I reply to a ticket.

I configured the following and it no longer shows me errors in the osticket panel but it does not send anything, why is this?

    AlfonsoPC

    Can you save the SMTP settings successfully? Also, have you set your Default System Email, Default Alert Email, and Default MTA to the email with SMTP enabled? (Admin Panel > Emails > Settings)

    Cheers.

    That is the current configuration, but it does give that error when saving :/

    Thanks for the help!

      AlfonsoPC

      Do you have Authenticated SMTP enabled for the email account in O365? To check this you can login to O365 as global admin, go to the Admin Center (not Exchange Admin Center), go to Active Users, search for the email account, click the name of the email account, go to the Mail tab in the popup, click Manage email apps, and ensure Authenticated SMTP is checked (enabled).

      Cheers.

      from the server the telnet command smtp.office365 587 if the connection was established.

        I have not configured remote mailbox only the outgoing smtp, so I configure remote mailbox? And if it doesn't work, do I do the link?

          AlfonsoPC

          Well don't configure Remote Mailbox tab if you aren't planning on using it. I was just wondering if you've already configured OAuth2 for that as you can just reuse the same auth info instead of configure OAuth2 in 2 separate places.

          At this point I'd recommend following the instructions I linked in the above post.

          Cheers.


          I continue with the same problems, I already followed the steps to solve these errors but they still appear.

            AlfonsoPC

            Set status to Disabled, save changes, set it to Enabled, and save changes.

            Cheers.

            I followed the steps, I only load the fields where I saved being disabled, however it generates the record but it continues to show the same error when I re-enable and save.

              AlfonsoPC

              Then maybe you didn’t configure the app correctly in O365. Make sure you followed the documentation exactly as described.

              If all else fails look at the mail logs on your webserver to see where it’s failing. Unfortunately I’m unable to replicate this so I can’t be of much help without more information/logs.

              Cheers.

              Indeed, all the configuration is correct according to the document that he gave me.



                AlfonsoPC

                Then I'm at a loss. Everything seems correct here... Maybe try disabling Authenticated SMTP and re-enabling it for the email (in O365 Admin Center)? We have seen in rare cases before that we had to do this with IMAP for some users but never SMTP; but you never know.

                Cheers.

                If I don't have this in the php.ini added, it gives me an error when sending or answering a ticket, I don't know how this system works that doesn't work for me in both configurations.

                  AlfonsoPC

                  PHPMail/Sendmail is used as a fallback (last resort) when SMTP fails. So this shouldn't be necessary once you get SMTP working.

                  Maybe try disabling Authenticated SMTP and re-enabling it for the email (in O365 Admin Center)?

                  Are you using localhost or a domain name with HTTPS configured? If HTTPS, are you using a certificate from a trusted CA or a certificate from a local CA (self-signed)?

                  Cheers.