I was not getting email notifications for alerts on my EasySocial site (example: friend request).

I was getting registration emails successfully, and I was scratching my head trying to figure out why the alert emails were not being sent.

After looking around, I finally managed to make it work, but here are some suggestions for the stackideas team.

1. It is not clearly documented that cron jobs are required for alert emails to be sent.


All it says is that email notifications should be on. I verified that email notifications were switched on in the Alert settings page, and... there were no emails.

It would be helpful for newbies like me if you added a line. Something like: "Alert email notifications are added to a queue that you can view in Settings/Email Activity. These notices are picked up by cron and emailed to users at specific intervals, but for that to happen, you need to set up a cron job first and configure it to trigger wget."

This may be obvious to people who are familiar with ES, but it is not to beginners.

A link to this page will be helpful:

2. On the cron jobs page (noted above), it is not immediately clear to new admins why these cron jobs are required. It says that it is to speed up emails. But which emails? Explaining how alerts are queued and picked up on this page as well would be helpful.

3. Even if you don't have cpanel or something similar, you can easily set up cron in a couple of lines. This is what I did.

sudo crontab -e

Then add this line and save the default crontab file:

*/5 * * * * /bin/wget -O /dev/null "http://yoursitename.com/index.php?option=com_easysocial&;cron=true"

The */5 makes the job pick up queued notices every five mins.

Maybe adding this tip to the cronjobs page will be good for those who don't want to install cpanel just to make emails work.

Note: On ubuntu, wget may be in /usr/bin/ instead of /bin. To find out where it is, type "which wget" on the command line.

On the whole, the documentation is very clear, but this part wasn't obvious. Once I added the crontab line, it worked right away and I got several emails. Yay!

This section can only be seen by users with a valid subscription.
If you have a valid subscription, please login now

Support is

It is currently off working hours and most of us aren't around.

Rest assured that we will get back to your issues as soon as the day starts tomorrow!

Your time
Stack Ideas time