Code Monkey home page Code Monkey logo

Comments (6)

andris9 avatar andris9 commented on July 20, 2024

Hi,

could you set debug:true and report the output log back to here? This should show a bit better where the sending fails.

{
    host:"smtp.gmail.com",
    user: ....
    debug: true
}

from nodemailer.

foxbunny avatar foxbunny commented on July 20, 2024

Ha, yes, thanks for that. Here's the response:

RECEIVE (1):
└──"502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n" ""

from nodemailer.

foxbunny avatar foxbunny commented on July 20, 2024

Here's the full thing. I've stripped away parts that I consider sensitive. Please tell me if you need something I've omitted.

CONNECTION (1): 220 mx.google.com ESMTP p24sm599286bkw.41
Connection established! (1)
SEND (1):
└──"EHLO [127.0.0.1]\r\n"
RECEIVE (1):
└──"250-mx.google.com at your service, [93.86.179.167]\r\n250-SIZE 
35882577\r\n250-8BITMIME\r\n250-AUTH 
LOGIN PLAIN XOAUTH\r\n250 ENHANCEDSTATUSCODES\r\n" ""
Routing Data (1)
SEND (1):
└──"AUTH PLAIN .... ==\r\n"
RECEIVE (1):
└──"235 2.7.0 Accepted\r\n" ""
Routing Data (1)
SEND (1):
└──"MAIL FROM:<[email protected]>\r\n"
RECEIVE (1):
└──"250 2.1.0 OK p24sm599286bkw.41\r\n" ""
Routing Data (1)
SEND (1):
└──"DATA\r\n"
RECEIVE (1):
└──"503 5.5.1 RCPT first. p24sm599286bkw.41\r\n" ""
Routing Data (1)
SEND (1):
└──"X-Mailer: Nodemailer (0.1.22; +http://www.nodemailer.org)\r\nDate: 
Fri, 29 Jul 2011 14:51:41 GMT\r\n
From: \"Herd Hound Team\" <[email protected]>\r\n
Subject: [Herd Hound] Welcome to Herd Hound!\r\n
MIME-Version: 1.0\r\n
Content-Type: multipart/alternative;\r\n        
boundary=\"----NODEMAILER-?=_2-1311951101991\"\r\n\r\n"
SEND (1):
└──"------NODEMAILER-?=_2-1311951101991\r\nContent-Type: text/plain; 
charset=UTF-8\r\nContent-Transfer-Encoding: quoted-printable

MESSAGE BODY

RECEIVE (1):
└──"502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n502 5.5.1 
Unrecognized command. p24sm599286bkw.41\r\n" ""

from nodemailer.

foxbunny avatar foxbunny commented on July 20, 2024

I see what the error is:

RECEIVE (1):
└──"503 5.5.1 RCPT first. p24sm599286bkw.41\r\n" ""

I had a silly bug that was stripping the recipient. I think Nodemailer should have caught 503 and reported it in errors. Maybe even throw prematurely on missing recipient address?

from nodemailer.

andris9 avatar andris9 commented on July 20, 2024

Yeah, you're right, there should be some kind of check if at least one address exists in To, Cc or Bcc field.

from nodemailer.

foxbunny avatar foxbunny commented on July 20, 2024

Yah, adding the recipient did it. Thanks for helping me troubleshoot this.

from nodemailer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.