550 5.7.1 Client does not have permissions to send as this sender (office365)

前端 未结 5 1156
时光说笑
时光说笑 2021-01-03 23:38

i m trying to send email with following configuration

Host: smtp.office365.com

port: 587

user: \"myemail@domain.com\"

pass: \"mypassword\"

5条回答
  •  花落未央
    2021-01-04 00:29

    Beware that this error might also occur when the from email does not match the username.

    So, be sure to test the value myemail@domain.com is the same on user and from.

    If it works when both fields have the same value and doesn't work when the from is different from the user, it means you should contact the company responsible for the email server and ask them to create a shared account and add SendAs priviledges for the account.

提交回复
热议问题