By Jonathan Thompson on Thursday, 22 June 2017
Posted in General
Replies 13
Likes 0
Views 329
Votes 0
Hello. I would like to turn off email notifications for certain items but leave the system notification on for the website. It seems my hosting is unable to quickly handle all the emails after adding more people to the site.

I am not clear what the function is for "email default" vs "email state" or "system default" vs "system state"

Does toggling the "Status" column from green check to red x disable that alert for both the system and emails?

Thanks

Jonathan
Hi Jonathan,
Does toggling the "Status" column from green check to red x disable that alert for both the system and emails?
Yes that is correct. Once the status is disabled, it will not appear in the alerts page in the frontend too.
As for the other columns:
Email Default: Default email notification status of the alert for new users.
System Default: Default system notification status of the alert for new users.
Email State: Email notification on/off for the alert.
System State: System notification on/off for the alert.

EDIT: To turn off email notifications for certain items but leave the system notification on, you would have to disable the email state for those items.
·
Thursday, 22 June 2017 10:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,

I toggled the email state off for friend requests. However the notification still appears in the email queue.
·
Thursday, 22 June 2017 11:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jonathan,
I have investigated this and there is a bug with those 2 alerts since the email state setting is not being respected. I will log this issue in our tracker so the devs can address this.
In the meantime, if you want a temporary fix to force disable these 2 alerts' email notifications, you can download the attached file and apply it into the following directory:
JoomlaFolder/administrator/components/com_easysocial/includes/friends/friends.php
Do note that the fix will force disable the email alerts, so it will still be disabled even if you enable it from the backend.
Remember to backup the original file beforehand.
·
Thursday, 22 June 2017 15:42
·
0 Likes
·
0 Votes
·
0 Comments
·
I don't think the email state setting is being respected on any of the alerts. I continue to get emails generated on other items I have turned off as well.
·
Thursday, 22 June 2017 18:13
·
0 Likes
·
0 Votes
·
0 Comments
·
Perhaps you can share to us which kind of email alert which not respect the setting as what you set from backend so we can better have a check ?
·
Thursday, 22 June 2017 23:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your help, the new friends.php file appears to be working as expected.

A couple more examples,

I have turned off email state for likes and for "someone followed you". Emails are still generated and sent.
·
Friday, 23 June 2017 07:11
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Jonathan,
I have included another 2 temporary fix files. You can apply them into the directories below if you want to use them.
JoomlaFolder/media/com_easysocial/apps/user/story/story.php
JoomlaFolder/administrator/components/com_easysocial/includes/subscriptions/subscriptions.php

EDIT: From your screenshot, it looks like the email activity contains notification regarding liking comments. Actually liking comments uses its own alert(http://take.ms/7uEwS). One of the files above is for this alert.

Regarding your server issue, may I know what hosting company are you using currently? How do you know that the hosting is not able to handle many email notifications? Does your server have error logs on the issue?
·
Friday, 23 June 2017 16:22
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks. I use a company called bcswebsiteservices.

I monitored the Easysocial Dashboard > E-mail activities graph and watched the number delivered vs pending. It appeared that the limit per cron job was 50 emails. Manually running cron wouldn't result in additional emails being delivered immediately either.
·
Sunday, 25 June 2017 03:41
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey there,

I am really sorry for the delay of this reply as it is a weekend for us here.

You're welcome, actually it will send out 20 emails per cronjob by default, may i know how many minute you set for your cron interval from your server?

Based on what my experience, as long as you have setup your cronjob from your server, your server should be able to handle those email notification is because you already set your time interval, it will not process that cronjob for every minute.

And i also realised your Easyblog did enabled "Send E-mails During Page Load", perhaps you can turn off this option and setup Easyblog cronjob from your server, so it will not send out Blog email notification immediately when the user load your Easyblog page on your site, it might help this issue.
·
Sunday, 25 June 2017 11:40
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your help! I was using easycron and now have cron configured on the server every 5 minutes. It appears to be sending 20 emails per cronjob. I'll check with the hosting support to address this.
·
Monday, 26 June 2017 19:43
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating Jonathan
·
Monday, 26 June 2017 21:04
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post