Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
774 views
in Technique[技术] by (71.8m points)

laravel - Is there way prevent Limits for sending & getting mail using gmail smtp?

I have problem regarding Expected response code 354 but got code "550", with message "550 5.4.5 Daily user sending quota exceeded. k32sm18267425pjc.36 - gsmtp " this happens when I send email from other. I used gmail as a unpaid gmail account. based on their help support contents, is it because the daily usage limit.? this is the first time I encounter this error when I test the mailing function of my project.

Technology Use: Laravel 5.7 Version

Question:

  1. Do I need to pay to the gmail so that there is no limit sending email from other user?
  2. Is there need to configure to the gmail to prevent this error?

Problem:

Expected response code 354 but got code "550", with message "550 5.4.5 Daily user sending quota exceeded. k32sm18267425pjc.36 - gsmtp "

Here is the smaple Code:

       $data = [
            'branch' => $client_branch,
            'email' => $client_email,
            'subject' => 'Finance Approval'
        ];

        
        Mail::send('new_franchising_payment',['data'=>$data], function ($m) use ($data) {

            $m->from('[email protected]', $data['subject']);
            $m->to('[email protected]')
            ->subject('You have new notification!');

        });

.ENV File

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=465
MAIL_USERNAME=just secret
MAIL_PASSWORD=just secret
MAIL_ENCRYPTION=ssl

Very well appreciate your response guys!

question from:https://stackoverflow.com/questions/65889477/is-there-way-prevent-limits-for-sending-getting-mail-using-gmail-smtp

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Yes, the free tariff plan has a limit on the number of messages sent. At the paid level, there will already be other limits. All information can be found in the official documentation from google

https://support.google.com/a/answer/166852?hl=en https://support.google.com/a/answer/2956491#sendinglimitsforrelay


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...