STMP Authentication not working with token OAuth in laravel 5.5 and Swift Mailler

Wallace Souza 0 Reputation points
2023-06-06T16:47:11.5766667+00:00

When i try to connect in SMTP using laravel 5.5 and swift mailler with token OAuth always i receive error 535 but my credentials be correct and in IMAP these crendentials to work, i would like to know if exists anyway for generate the token oauth or other method for using the modern authentication with SMTP?

Exchange Online
Exchange Online
A Microsoft email and calendaring hosted service.
6,171 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Carlos Solís Salazar 18,191 Reputation points MVP Volunteer Moderator
    2023-06-07T11:49:13.3566667+00:00

    Thank you for asking this question on the Microsoft Q&A Platform.

    The following documentation shows you different options to send emails from Exchange online

    1. Option 1: Authenticate your device or application directly with a Microsoft 365 or Office 365 mailbox, and send mail using SMTP AUTH client submission
    2. Option 2: Send mail directly from your printer or application to Microsoft 365 or Office 365 (direct send)
    3. Option 3: Configure a connector to send mail using Microsoft 365 or Office 365 SMTP relay

    Here's a comparison of each configuration option and the features they support.

    User's image

    Hope this helps!


    Accept Answer and Upvote, if any of the above helped, this thread can help others in the community looking for remediation for similar issues.

    NOTE: To answer you as quickly as possible, please mention me in your reply.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.