
smtp.live.com
我正在嘗試透過port從我的網站發送郵件587
。我驗證了憑證,甚至嘗試透過在 Gmail 中新增帳戶並透過它發送來發送電子郵件。在 Gmail 上可以,但在我的伺服器上不行
我收到以下錯誤:
{ [SenderError: Mail from command failed - 501 5.5.4 Invalid Email address] name: 'SenderError', data: '501 5.5.4 Invalid Email address' }
我在用節點郵件程式傳送郵件
誰能給我一些有關此錯誤訊息的資訊?
答案1
結果發送電子郵件的模組沒有指定字段from
,並且將其發送為空白。 Outlook smtp 伺服器不能容忍這種情況並引發錯誤。
特別添加from
到電子郵件解決了問題