By Sean Carney on Wednesday, 16 August 2017
Posted in General
Likes 0
Views 562
Votes 0
I have a unique problem right now where a user has told me she is receiving three emails each time we sent one. And, this is not the problem I had previously. The problem I had previously was because I had two copies of my site on test servers and the cronjobs were running on the real site and the two test sites so we were sending out three emails to everybody, every time.

Now, I only have heard from one of our blog subscribers that she is receiving duplicates. I have queried the mail server which is a gmail account and sure enough this user is receiving duplicates. I have searched for some other users and they are not.

I searched through the EasyBlog Subscribers list and found that this subscriber is only subscribed once and is subscribed to the "Entire Site". This is not an EasySocial user but is just somebody who is subscribing to blogs.

Something else I noticed is that most of my subscribers are subscribed three times to the Entire Site. I am assuming this is not right and that I should be deleting two of the subscriptions for each of these users. I am not sure how they are subscribed three times but wonder if maybe this was caused when we had the test sites that were sending out emails?

Any insights you have into this will be appreciated.

Sean Carney
Hi Sean,

Honestly, we also dont have the exact ideas why only that user received duplicates emails notifications. But somehow, we got some ideas to check on this issues. We required your permission to execute this plan fro further check on this issues.

Steps that we planned as follows

1. It is required for you temporary turn off your cronjob execution(executed all remaining pending and etc) need to make sure it is empty.
2. Disable 'Send E-mails During Page Load ' setting on your backend
3. Then, try to re-send again to Peggy O'Neill whether he will got duplicates emails notifications or not. (need your permission/her whether can sent and received this test emails)
4. We also need your permission whether we can purge all of yours existing email activities (sent) on your backend.

After all of the above executed, we will manually run the cron URL and see whether Peggy O'Neill still receiving duplicate email notification.

Something else I noticed is that most of my subscribers are subscribed three times to the Entire Site.

Currently, one of our customer also encounter this issues on their site. But currently, we dont really know what exactly the issues is, whether there are issues on our end or on the database got some issues as when same email addresses subscribed to the entire site, it will somehow stored on the database and when there are new blog post, it will still sent out to the same email address, as currently it should not sent out to that same particular emails address.

Please advice.
·
Wednesday, 16 August 2017 11:23
·
0 Likes
·
0 Votes
·
0 Comments
·
I am willing to do all that you ask. Also, I think that we probably should also remove all of the duplicate subscriptions to the blogs. I am happy to do that but wanted to make sure you agreed. I am not sure if you want to keep the duplicates to do the testing or if we should clean them out and then see if any duplicates are created again in the future.

1. Here is a copy of my crontab, which I just cleared out, so that we can recreate it, or some variant soon. I hope we can do this soon because removing them certainly breaks some functionality.; :-)

[gist type="php"]
*/2 * * * * wget --no-check-certificate -O /dev/null "https://www.drcarney.com/index.php?option=com_easysocial&cron=true";
*/5 * * * * wget --no-check-certificate -O /dev/null "https://drcarney.com/index.php?option=com_easyblog&task=cron";
*/5 * * * * wget --no-check-certificate -O /dev/null "https://drcarney.com/index.php?option=com_komento&task=cron";
*/5 * * * * wget --no-check-certificate -O /dev/null "https://drcarney.com/index.php?option=com_easydiscuss&task=cron";
[/gist]

2. I have disabled 'Send E-mails During Page Load ' in Settings -> Notifications -> Blogs.

3. I have sent a message to Peggy asking if it is fine with her if we send her test emails. I expect a positive response.

4. If you need to purge all of our existing email activities from the sent box in order to do the necessary tests then feel free to do so. I never like the idea of removing data like that but I even more would like to see the duplicate email issue solved. "=_

Sean
·
Wednesday, 16 August 2017 23:01
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi there,

Also, I think that we probably should also remove all of the duplicate subscriptions to the blogs. I am happy to do that but wanted to make sure you agreed. I am not sure if you want to keep the duplicates to do the testing or if we should clean them out and then see if any duplicates are created again in the future.

Yes you can delete them and kept one only.

By the way, I have resent one email to Peggy and maybe you can check with her whether she received multiple emails or not as based what i get from manually run those cronjob URL, only one email are sent out as you can refer below

{"emails":{"status":200,"type":"info","message":"Processed and sent 1 emails"},"


Check with her and see how it goes. If she didnt get multiples emails, maybe you can try to put those cron URL again on your cronjob and check whether Peggy will received multiple emails or not when the cronjobs executed.

Please advice and kept us updated .
·
Thursday, 17 August 2017 11:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Thank you Abdul for all your help.

I just logged into the gmail administrator backend and search for an email to peggy@knitknights.com and did not see any having been sent out today.

Sean
·
Thursday, 17 August 2017 22:17
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sean,

May i know what exactly you meant by 'there are no emails' sent out when you check on gmail administrator backend? It very weird as on the backend those email are sent out as shown http://take.ms/TIB55. By the way, i have tried again using my own emails and subscribed to your entire site, and it is working as it should as i received those emails as you can see here http://take.ms/EtB7a

Please advice.
·
Friday, 18 August 2017 10:05
·
0 Likes
·
0 Votes
·
0 Comments
·
I think I understand why I did not see the emails having been reported in the G Suites Reports for email. It looks like I was only sending out emails about five emails at a time and the script is only running every five minutes. So, my guess is that her email had not yet sent out yet when I wrote to you in this ticket. But then, hours later, when you looked it had been processed.

I just now figured out where to set up the amount of emails that get sent out each time at Settings ->: Notifications -> General. I have set it to allow 100 at a time since I just looked on Google and that appears to be the limit they have set.
From now on 100 messages will go out each time the crontab runs. Currently they will all go out the first time the crontab runs since I currently have less than 100 subscribers.

Sean
·
Saturday, 19 August 2017 04:25
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Sean,

Kept us updated then, check with Peggy whether she received duplicate emails or not. Please advise.
·
Saturday, 19 August 2017 10:32
·
0 Likes
·
0 Votes
·
0 Comments
·
I see that Google email is only sending out one notification each time to her so I am pretty sure the issue is resolved.
·
Tuesday, 22 August 2017 00:44
·
0 Likes
·
0 Votes
·
0 Comments
·
Great! Thanks for updating us on this Sean and glad that your issues are resolved now.
·
Tuesday, 22 August 2017 00:45
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post