By Richard Sparks on Tuesday, 21 January 2014
Posted in Technical Issues
Replies 11
Likes 0
Views 1.1K
Votes 0
Email notifications of new blog subscriptions (email subscriptions not RSS) are being sent to the administrator. The subscription dates are from 3 months ago so the notification isn't very useful. I haven't been able to locate any configuration settings to disable these subscription notifications so they aren't sent to administrators. Is there a setting for this? And why is it telling me about subscriptions from long ago?

EasyBlog 3.9.15188
Joomla 2.5.17

Richard
Hello Richard Sparks,

Sorry for late reply to this,
Did you mean that when the user create a new blog post, the email notification didn't sent to your administrator right? (what is that administrator email address)
Is it possible pass your Joomla administrator URL to us so we can help you check on this issues ?
·
Tuesday, 21 January 2014 10:34
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

You can actually edit the file /components/com_easyblog/models/subscription.php file and remove the codes below,



if( $state )
{
// lets send confirmation email to subscriber.
$helper = EasyBlogHelper::getHelper( 'Subscription' );
$template = $helper->getTemplate();

$template->uid = $subscription->id;
$template->utype = 'sitesubscription';
$template->user_id = $subscription->user_id;
$template->uemail = $email;
$template->ufullname = $fullname;
$template->ucreated = $subscription->created;
$template->targetname = $config->get('main_title');
$template->targetlink = EasyBlogRouter::getRoutedURL('index.php?option=com_easyblog&view=latest', false, true );

$helper->addMailQueue( $template );
}


We will add this as a configuration option for EasyBlog 4.0
·
Tuesday, 21 January 2014 10:36
·
0 Likes
·
0 Votes
·
0 Comments
·
Did you mean that when the user create a new blog post, the email notification didn't sent to your administrator right? (what is that administrator email address)
Is it possible pass your Joomla administrator URL to us so we can help you check on this issues ?


No. That's not it. An email is sent to the Joomla super user notifying him that a person has subscribed to the blog using the subscribe by email function, not the subscribe by RSS. The emails I'm getting now say the visitor's subscription date was last October - 3 months ago. Why is it sending so long after the subscription? Or perhaps it is sending the notification again. Either way, I don't need the Super User to receive these notification emails, but I do want the subscriber to receive the confirmation email verifying that their subscription request was successful.

I did provide website URL, Joomla super user and FTP access credentials in my first post. Was it not saved?

Richard
·
Tuesday, 21 January 2014 12:00
·
0 Likes
·
0 Votes
·
0 Comments
·
You can actually edit the file /components/com_easyblog/models/subscription.php file and remove the codes below


Mark, it looks like editing the code you suggest will prevent the subscriber from receiving an email confirmation. I just want to stop the notification emails to the Joomla Super User. Then on the other hand, I don't want my blog subscribers to be notified their subscription was successful 3 months after they sign up either.

Thanks, Richard
·
Tuesday, 21 January 2014 12:03
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

So sorry for the delay in getting back to you. To prevent mails from being sent to administrator I went to this file

JOOMLA/components/com_easyblog/views/subscription/view.ejax.php

and commented the codes in line 295
$notification->send( $emails , $emailTitle , 'email.subscriptions' , $data );

As for the 3 months late email, may i know if you are using cron job to send the emails? If your cron duration is too long it will actually take ages to get the emails sent out, provided you have tons of emails queued. I tried to login the backend to check this but i get redirected to the frontpage. Hope this helps.

Thanks!
·
Tuesday, 21 January 2014 16:59
·
0 Likes
·
0 Votes
·
0 Comments
·
Adelene

Thank you for the reply. My cron job is running once a day. Is that duration too long? I don't think we're getting a large number of subscriptions each day. I checked the file you edited and see the specified code is already commented out. I did receive another subscription notification email this morning from October 14. Hopefully that will be the last one. I'll let you know if I get more tomorrow.

Sorry you weren't able to log into Joomla admin. I have Admin Tools configured with a admin login query string and forgot to give that to you. No problem, I guess you didn't need it anyway.

Richard
·
Wednesday, 22 January 2014 00:09
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

You should try to setup your cronjob to get executed every 10 - 15 minutes rather than daily.
·
Wednesday, 22 January 2014 01:45
·
0 Likes
·
0 Votes
·
0 Comments
·
Mark, OK... I set the cron job to run every 15 minutes.

Richard
·
Wednesday, 22 January 2014 03:28
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Richard,

You are most welcome. Glad that your issue is solved.

Thanks!
·
Wednesday, 22 January 2014 10:39
·
0 Likes
·
0 Votes
·
0 Comments
·
Is there a way to make this mod using an override? I don't want it to get wiped in my next update.

Also, why in the world is there not a setting in the admin to shut off subscription notices being sent to the admins. In my case, I only want it to go to ONE address, not every single site admin. They're getting frustrated at me about

I'm referring to editing this file:
JOOMLA/components/com_easyblog/views/subscription/view.ejax.php

UPDATE: Aha! It looks like Settings>Notifications>General Settings>Custom Email Address actually sets where the admin emails go? It appears to work, but the label for this is not really clear.

I assume it works hand in hand with the option below it, but instead of saying "Use Custom Email as Admin Email" it really should say "Send admin notifications only to Custom Email Address" if that's indeed what it does (it appears to work that way).

thanks!
·
Wednesday, 18 March 2015 04:49
·
0 Likes
·
0 Votes
·
0 Comments
·
Hi Brian,

I am sorry for the late reply.
I am glad to hear your issue is now resolved. I am apologize for the inconvenience caused. If you have anymore question, please do ask us.

Have a great day.
·
Wednesday, 18 March 2015 10:22
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post