Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 ?

share|improve this question
add comment

1 Answer

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|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.