java - Bulk Emails failed with 421 4.7.0 Try again later -
i have requirement send bulk emails in organization. java mail api , sending mails below config.
props.put("mail.transport.protocol", "smtp"); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); props.put("mail.smtp.host", "smtp.gmail.com"); props.put("mail.smtp.port", "587");
mail#1 from: abc@org.com to: emp1@org.com
mail#2 from: abc@org.com to: emp2@org.com
...
mails triggered in loop.
problem: first 80 emails sent successfully. 81st mail failing below error 10-15 emails , later few mails sent successfully.
out of 743 emails 400 failed & 343 success.
info | jvm 1 | 2017/08/18 07:25:54 | com.sun.mail.smtp.smtpsendfailedexception: 421 4.7.0 try again later, closing connection. (mail) xsdsfasdsa.96 - gsmtp info | jvm 1 | 2017/08/18 07:25:54 | info | jvm 1 | 2017/08/18 07:25:54 | @ com.sun.mail.smtp.smtptransport.issuesendcommand(smtptransport.java:2108) info | jvm 1 | 2017/08/18 07:25:54 | @ com.sun.mail.smtp.smtptransport.mailfrom(smtptransport.java:1609) info | jvm 1 | 2017/08/18 07:25:54 | @ com.sun.mail.smtp.smtptransport.sendmessage(smtptransport.java:1117)
- help me how resolve it.
- is there specific per minute limit on smtp.gmail.com?
thanks, rana
Comments
Post a Comment