Using NODEMAILER :console error: missing credential login

please friend help me fixed this console error
Error: Missing credentials for “LOGIN”

at SMTPConnection._formatError (/rbd/pnpm-volume/aedea735-e84b-4510-8772-e22d02b7ffd9/node_modules/.registry.npmjs.org/nodemailer/6.6.3/node_modules/nodemailer/lib/smtp-connection/index.js:784:19)

at SMTPConnection.login (/rbd/pnpm-volume/aedea735-e84b-4510-8772-e22d02b7ffd9/node_modules/.registry.npmjs.org/nodemailer/6.6.3/node_modules/nodemailer/lib/smtp-connection/index.js:438:38)

at /rbd/pnpm-volume/aedea735-e84b-4510-8772-e22d02b7ffd9/node_modules/.registry.npmjs.org/nodemailer/6.6.3/node_modules/nodemailer/lib/smtp-transport/index.js:271:32

at SMTPConnection.<anonymous> (/rbd/pnpm-volume/aedea735-e84b-4510-8772-e22d02b7ffd9/node_modules/.registry.npmjs.org/nodemailer/6.6.3/node_modules/nodemailer/lib/smtp-connection/index.js:209:17)

at Object.onceWrapper (events.js:284:20)

at SMTPConnection.emit (events.js:196:13)

at SMTPConnection._actionEHLO (/rbd/pnpm-volume/aedea735-e84b-4510-8772-e22d02b7ffd9/node_modules/.registry.npmjs.org/nodemailer/6.6.3/node_modules/nodemailer/lib/smtp-connection/index.js:1319:14)

at SMTPConnection._processResponse (/rbd/pnpm-volume/aedea735-e84b-4510-8772-e22d02b7ffd9/node_modules/.registry.npmjs.org/nodemailer/6.6.3/node_modules/nodemailer/lib/smtp-connection/index.js:947:20)

Did you give the correct username and password to the mail server?

1 Like

Yes, I tried with gmail and now am trying Hotmail