Microsoft 365 SMTP Setup and App Password (if MFA enabled)

Modified on Fri, 31 Oct at 9:41 AM

Summary

To send email through Microsoft 365 (Office 365), you must enable SMTP AUTH for your mailbox and, if Multi-Factor Authentication (MFA) is enabled, generate an App Password to use as your SMTP password.

Applies To

Users or administrators configuring Microsoft 365 accounts to send email through an external application.

Before You Begin

You’ll need:

  • Access to the Microsoft 365 Admin Center (or help from an admin).

  • MFA enabled on your account (for App Passwords).



Steps

  1. Enable SMTP AUTH for Your Mailbox

    • Go to the Microsoft 365 Admin Center: https://admin.microsoft.com

    • In the left menu, navigate to Users → Active users.

    • Select your user account.

    • Click Mail → Manage email apps.

    • Ensure Authenticated SMTP is checked.

  2. If you don’t see this option:

    • An admin must enable it tenant-wide:

      • Go to Settings → Org settings → Modern authentication.

      • Ensure “Authenticated SMTP” is enabled for the organization.

  3. Generate an App Password (if MFA is enabled)

    • Visit https://mysignins.microsoft.com/security-info

    • Click Add method → App password.

    • Name it (for example, SMTP for VANAS) and click Next.

    • Copy the generated App Password — you’ll only see it once.

    • Use this App Password as your SMTP password in your application.

  4. If you do not see the App Password option:

    • Your admin may need to enable App Passwords for your account.

    • App Passwords are only available if MFA is turned on.

  5. Use These SMTP Settings in Your Application

    • SMTP Host: smtp.office365.com

    • Port: 587

    • Encryption: TLS

    • Username: your full Microsoft 365 email address

    • Password: the App Password generated above

Once saved, send a test email to verify your configuration.






Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons

Feedback sent

We appreciate your effort and will try to fix the article