Limited number of emails are being sent
Permalink
I am working on a website, having requirement to keep all blog subscribers up-to-date with latest blogs.
Currently , this is being acheived by listening to publish event. As soon as it gets triggered , it starts sending emails to over 300 subscribers.
Problem is that, it only sends email to 90 recepients, error statements are as given:
Concrete5 logs : "Mail Exception Occurred. Unable to send mail: 4.7.0 Too many login attempts, please try again later. cm6sm3382055wib.22 - gsmtp..." (Please see the ref. for logs)
Front end screenshot error: (Please see image for details)
"messge : fwrite() SSL operation failed with code 1
openSSL error
protocol shut down. "
SMTP settings :
Encryption type : TLS
Authentication provided
Additional Details :
Email data isn't generic , It has some information that is unique to subscribers.
Currently , this is being acheived by listening to publish event. As soon as it gets triggered , it starts sending emails to over 300 subscribers.
Problem is that, it only sends email to 90 recepients, error statements are as given:
Concrete5 logs : "Mail Exception Occurred. Unable to send mail: 4.7.0 Too many login attempts, please try again later. cm6sm3382055wib.22 - gsmtp..." (Please see the ref. for logs)
Front end screenshot error: (Please see image for details)
"messge : fwrite() SSL operation failed with code 1
openSSL error
protocol shut down. "
SMTP settings :
Encryption type : TLS
Authentication provided
Additional Details :
Email data isn't generic , It has some information that is unique to subscribers.
$mh = Loader::helper('mail'); foreach ($children as $dataRow) { $mh->setSubject($subject); $mh->setBodyHTML($body_message); $mh->to($dataRow['emailAddress']); $mh->sendMail(); }
hi, is your code recursing through a list of email addreses and sending an email to each individually?
You'd likely be better off concatenating your list of email addresses and sending them as a blind copy if it is possible to do that.
Thanks Andy, I will give it a try.
However, In case , we send them altogether, STMP server has put limitations on number of recepients specified at a time i.e 99 . This way we won't be able to acheive our goal successfully.
However, In case , we send them altogether, STMP server has put limitations on number of recepients specified at a time i.e 99 . This way we won't be able to acheive our goal successfully.
@Maria93
What about sending the e-mail in smaller groups at a time to stay under the maximum recipients limitation?
If you have 300 subscribers, then 99, 99, 99, and 3. Possibly adding a delay between groups.
What about sending the e-mail in smaller groups at a time to stay under the maximum recipients limitation?
If you have 300 subscribers, then 99, 99, 99, and 3. Possibly adding a delay between groups.
Thanks @MrKDilkington,
What you proposed will resolve above mentioned problem.
Considering solutions proposed , I realized that I forgot to mention email data isn't generic. There's information that is unique to subscriber because of that eventually we have to loop through all subscribers one at a time.
My guess is that I'm having "too many login attempt" error because of this looping as it must be doing authentication for each one of them.
Any suggestions over this would be much appreciated.
What you proposed will resolve above mentioned problem.
Considering solutions proposed , I realized that I forgot to mention email data isn't generic. There's information that is unique to subscriber because of that eventually we have to loop through all subscribers one at a time.
My guess is that I'm having "too many login attempt" error because of this looping as it must be doing authentication for each one of them.
Any suggestions over this would be much appreciated.
HI,
Did you come up with a solution for this?
Did you come up with a solution for this?