By Chris Chase on Thursday, 28 June 2018
Posted in General Issues
Replies 9
Likes 0
Views 1K
Votes 0
This client is having issues with their site sending out subscription notifications for their blog. In fact, it doesn't appear to be sending notifications at all.

The cronjob is setup and setup correctly, and as far as I'm aware the settings are set correctly, however it refuses to send out emails. Based on the mail activities section of Easyblog, nothing has been sent out since last Friday when I subscribed to their blog.

I double checked this on the server by checking the mail reports there, and I'm seeing the same thing.

Could you take a look and see what possible issues could be preventing the site from sending emails? I've attached site and FTP credentials to this ticket for you.
Hi Chris,

I tested the notification on your site by creating a new test post. The email notifications for the site subscribers are generated as expected(http://take.ms/7BbBH). After that, I deleted the test posts and email activities.

I also tried to manually send the notification emails to subscribers(http://take.ms/RtndT) and the email activity is generated as well.

May I know the steps you used to create new blog posts?
·
Thursday, 28 June 2018 11:26
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Raymond,

We push blog packages to all of our clients with our posts. We create them on a separate website, then package them up, and push them out to clients. Thi is a component that we've built in-house to suit our needs. The packager essentially just creates a zipped file of all the post information, which is then installed on multiple websites, creating the posts in Easyblog.
·
Friday, 29 June 2018 21:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Hey Chris,

When you create a new post with EasyBlog, it will generate the necessary e-mail activities in the queue. Since you are performing a custom insertion of posts by packaging in a zip file, we are not really sure how does that work.

If you are zipping them up and re-importing them with the database, you would also need to simulate the publishing options in EasyBlog.
·
Friday, 29 June 2018 21:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for the information Mark.

Is there a particular file that we would be able to take a look at to see how the e-mail activities in Easyblog are being generated?
·
Tuesday, 03 July 2018 00:17
·
0 Likes
·
0 Votes
·
0 Comments
·
If I recall correctly, you did shared with us your packager PHP script file and this script file doesn't go through Easyblog post library, this is why your packager script file doesn't notify your site subscriber for the new blog post notification.

Perhaps you can pass this following information to your site developer and see if this will help much you here :

1. Imagine if the user press publish button from the composer, it will go through this controller first then call post library save function.
- JoomlaFolder/components/com_easyblog/controllers/posts.php (save function)
- JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php (save function)

2. Then it will call postSave function and see whether this blog post should notify the user or not e.g. schedule post, submit for approval and etc.
- JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php (postSave function)

3. If the blog post publish it straight away, it will go in this notify function (http://take.ms/554zg)

4. Then proceed the notification http://take.ms/43tb9

5. It will call this sendSubscribers function from this file and log those email notification in database
- JoomlaFolder/administrator/components/com_easyblog/includes/notification/notification.php

6. When the cronjob kick in, it will check for this table `#__easyblog_mailq` which `status` still stored it as 0 , then proceed these.

Hope this will help.
·
Tuesday, 03 July 2018 12:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello,
We have checked the code and the work flow. We have managed to push the notification email to author when it is scheduled.
However we are still having issue with sending the emails to subscribers.

Usually we schedule the blog post to publish on specific dates so the the notification emails need to sent on the day it is published. I suppose this is handled by cronjob (or other?).

So what the cronjob checks and where so it know it needs to send the notifications emails to subscribers(on specific day) and then add them to the email activity.

Thanks
·
Friday, 13 July 2018 16:38
·
0 Likes
·
0 Votes
·
0 Comments
·
Yes, it will rely on the cronjob when it kick in, it will process those schedule post to publish.

Make sure you turn off this 'send email on page load' setting from your site backend http://take.ms/swlmi , so it will not conflict with your cronjob.

When the cronjob kick in, it will execute one SQL query to check whether the current time is it have to publish those schedule post or not. If yes, it will process publish method from the code until this notify method (http://take.ms/L2NdS) JoomlaFolder/administrator/components/com_easyblog/includes/post/post.php , so it will check for the system and see whether it need to send out this email notification to the subscriber or not.

And also need to make sure your schedule post data, you have to stored this following value :

`published` - 2
`isnew` - 1


screenshot : http://take.ms/CIECV
·
Friday, 13 July 2018 17:16
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post