501 5.5.4 Invalid Email address when sending email in Outlook.com custom domain

22,073

Turns out the module that sent the email didn't specify a from field and it was sending it blank. The Outlook smtp server wasn't tolerant about this and threw an error.

Specifically adding from to the email solved the problem

Share:
22,073

Related videos on Youtube

Michael
Author by

Michael

Updated on September 18, 2022

Comments

  • Michael
    Michael over 1 year

    I am trying to send a mail from my website through smtp.live.com port 587. I verified the credentials and even tried to send the email from Gmail by adding the account there and sending through it. On Gmail it works, on my server it doesn't

    I get the following error :

    { [SenderError: Mail from command failed - 501 5.5.4 Invalid Email address] name: 'SenderError', data: '501 5.5.4 Invalid Email address' }
    

    I am using nodemailer to send the mail

    Can anyone give me some information about this error message ?