Skip to content

How to config the hotmail in .env file? #1950

Closed

Description

@tigerInLuck

Does it support the config in this way:

SMTP config:

SMTP_HOST=smtp.office365.com
SMTP_PORT=587
SMTP_TLS=false // 587 use for STARTTLS
SMTP_STARTTLS=true
SMTP_USERNAME=xxx@hotmail.com
SMTP_PASSWORD=xxx-xxx-xxx // the App passwords (by Two-step verification)

However, I tried to test the results, and I got "Authentication unsuccessful, basic authentication is disabled."

Test command:

swaks --server smtp.office365.com:587 \
--auth LOGIN \
--auth-user "xxx@hotmail.com" \
--auth-password "xxx-xxx-xxx" \
--tls \
--ehlo test \
--quit-after AUTH

Can anyone help me, thanks!

Activity

  1. Repository owner locked and limited conversation to collaborators on Sep 13, 2025
  2. converted this issue into a discussion #1951 on Sep 13, 2025
  3. added this to the v1.15.0 milestone on Mar 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions