0

response=421 4.7.0 Try again later, closing connection. (EHLO) vj23-20020a170907131700b0078db51bb303sm9553ejb.86 - gsmtp: 421 4.7.0 Try again later, closing connection. (EHLO) vj23-20020a170907131700b0078db51bb303sm9553ejb.86 - gsmtp Error: Server terminates connection. response=421 4.7.0 Try again later, closing connection. (EHLO) vj23-20020a170907131700b0078db51bb303sm9553ejb.86 - gsmtp: 421 4.7.0 Try again later, closing connection. (EHLO) vj23-20020a170907131700b0078db51bb303sm9553ejb.86 - gsmtp

enter image description here

Forum Forum
  • 13
  • 1
  • 4
  • So did you try later? What happened? Did you do a web search for this? How are you sending, what volume in what time frame? How is your IP address reputation? Is this even about programming? – Robert Oct 25 '22 at 18:39
  • Does this answer your question? [Bulk Emails failed with 421 4.7.0 Try again later](https://stackoverflow.com/questions/45756808/bulk-emails-failed-with-421-4-7-0-try-again-later) – Robert Oct 25 '22 at 18:39
  • thanks Robert but it not worked for me – Forum Forum Oct 26 '22 at 08:01
  • I found a solution I hope it will help you I replaced nodemailer Smtp by emailjs and this will solve the problem. https://www.npmjs.com/package/emailjs – Forum Forum Nov 07 '22 at 20:53

2 Answers2

1

I believe Nodemailer uses the computer's hostname in place of the name property when creating a transport. This can cause issues with some email relays such as Gmail. To fix this you can explicitly set the name property in the SMTP transport options to an arbitrary string.

user2248702
  • 2,741
  • 7
  • 41
  • 69
  • This is what worked for me. host: "smtp-relay.gmail.com", Port: 465, secure: true, name: "example.com" (replace with your domain) – Mike Wallace Jul 19 '23 at 20:07
0

I replaced nodemailer Smtp by emailjs.

General Grievance
  • 4,555
  • 31
  • 31
  • 45
Forum Forum
  • 13
  • 1
  • 4