Daily send quota exceeded for email through java

I have a java application to send email through my gmail account. Suddenly today I find this exception. Think my gmail block? So what is the solution to this problem?

com.sun.mail.smtp.SMTPSendFailedException: 550 5.4.5 Daily sending quota exceeded. y4sm4213404obj.10 at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2057) at com.sun.mail.smtp.SMTPTransport.data(SMTPTransport.java:1849) Transport Problem at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1099) at javax.mail.Transport.send0(Transport.java:195) at javax.mail.Transport.send(Transport.java:124) at commServer$MailProcessor.run(commServer.java:2263) at java.lang.Thread.run(Thread.java:619) 
+4
source share
3 answers

GMail accounts can and will often be temporarily suspended from use if it turns out that you are a likely spammer or spread viruses by email or otherwise harm others and thereby violate GMail's policies.

here is his brief rule book for your reference

From: Amit Agarwal Bulk Email with Digital Inspiration

Rule 1

If you access Gmail through POP or IMAP clients (such as Microsoft Outlook), you can send an email message to a maximum of 100 people at a time. Go over the limit, and your account will be disconnected for one day using the error "550 5.4.5 Exceeding the daily quota."

Rule 2

If you access Gmail from a browser, you may not have to send an email address to more than 500 people at a time. Try adding more recipients to the To, CC, or BCC box and your Gmail account is likely to be disconnected within 24-72 hours. Error: "Block Gmail in Secton 4"

Rule 3

Always double-check recipient email addresses before sending to Gmail. This is because your account will be disabled if the email contains a large number of non-existent or broken addresses (<25?) That return to unsuccessful delivery.

Rule 4:

This is a bit unrelated, but still important - Google will disable your Gmail account permanently if you do not verify your Gmail email address for a period of nine months. All saved messages will be deleted and you can specify the Gmail address (username) so that others can capture it.

At the end, gmail is for personal use only, and if you use it for some sort of testing or other things, suggest you get a mail server account

this is what google says about sending restrictions

+13
source

If you are willing to pay for this, there are some SMTP relay solutions that you can use, such as AuthSMTP ,

Once you sign up for AuthSMTP, you simply change the mail properties and pay based on the number of email messages you want to send per month. I used it for a while because gmail smtp (seemingly by chance) blocked emails coming from Amazon's ec2 cloud.

I have no connection with AuthSMTP. It's pretty cheap for low levels of email, but can get expensive if you send a lot.

0
source

Yesterday, I used the Thunderbird Mail Merge extension to send email to about 500 people. Unfortunately, this affected the Google Apps limit, and all further emails were blocked.

Even worse - the limit seems to be still in place today (the next day), which is very destructive, and I could not do any work.

The solution for me is to simply use an alternative SMTP server to send email, which you can easily configure in Thunderbird by adding it to the Outgoing Server (SMTP) section and then selecting it in the email account you are trying to use.

I have a cPanel web server with SMTP setup for this account that I can use, but any SMTP server should temporarily complete the task. You can find it by looking for a free SMTP server. Alternatively, you can configure it on the local computer as described here: local smtp server for sending mail

0
source

Source: https://habr.com/ru/post/1384702/


All Articles