Subscribers not receiving blog via email

Permalink Browser Info Environment
Can anyone tell me why the "send email to subscribers" option is not working on our blog?

Type: Discussion
Status: In Progress
dmeadows
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
Hi there,

This is an auto responder to let you know that your support ticket has been forwarded to our entire support team at RadiantWeb!

Support tickets are reviewed Mondays thru Fridays 9am to 9pm & Saturdays 9am to 12pm EST.

A support team member will be following up with you as soon as possible.

Thank for supporting RadiantWeb Products!

RadiantWeb Support
http://goradiantweb.com
RadiantWeb replied on at Permalink Reply
RadiantWeb
I need more info here. Screenshots? Error logs? Confirmation that users are on said list pages properties? C5 email logs?

I can not help you without details. Help me help you.
dmeadows replied on at Permalink Reply 1 Attachment
dmeadows
When I check the box that says "Email to Subscribers" and click "Save and Continue" it takes me to this error message.
dmeadows replied on at Permalink Reply
dmeadows
When I check the box that says "Email to Subscribers" and click "Save and Continue" it takes me to a new window with this error message:

"Fatal error: Call to a member function getUserEmail() on a non-object in /usr/home/advecoag/public_html/aea/packages/problog/helpers/blog_actions.php on line 48"
dmeadows replied on at Permalink Reply
dmeadows
When I check the box that says "Email to Subscribers" and click "Save and Continue" it takes me to a new window with this error message:

"Fatal error: Call to a member function getUserEmail() on a non-object in /usr/home/advecoag/public_html/aea/packages/problog/helpers/blog_actions.php on line 48"
dmeadows replied on at Permalink Reply
dmeadows
Sorry - this message board page got locked up but apparently posted my response anyway - multiple times. :-/
blakeage replied on at Permalink Reply
blakeage
# concrete5 Version
5.6.3

ProBlog
12.4.0

This wasn't working on our blog either, and after viewing the logs, I could see that the emails were going out (according to the Concrete logs), but in our mail server, I could see *how* they were being sent, and errors about the email being kicked back.

This is an example error in our mail server's logs:
Failed: None → blakeleemiller@gmail.com 'New Blog Post @.mobilefirstmedia.com!' Server response: 550 550 5.7.1 [184.173.153.217 11] Our system has detected that this message is 5.7.1 not RFC 2822 compliant. To reduce the amount of spam sent to Gmail, 5.7.1 this message has been blocked. Please review 5.7.1 RFC 2822 specifications for more information. fn5si2509428vdc.51 - gsmtp

And inspecting further into the log message, I can see the from email is not generated correctly:
"from": "subscriptions@.mobilefirstmedia.com"

I don't think that is a valid from email.

So I wondered why it was generating the domain with a "." before it, and tracked down the code to this line in file /helpers/blog_actions.php in the ProBlog add-on:
$mh->from('subscriptions@'.str_replace('www', '',$_SERVER['SERVER_NAME']));

It's not a permanent or ideal fix to patch the code directly, but I did it to test, and the email successfully went through. Change that line to:
$mh->from('subscriptions@'.str_replace('www.', '',$_SERVER['SERVER_NAME']));

This will remove "www." from your server name, rather than just the "www".

concrete5 Environment Information

Here is the error that's coming up:
Fatal error: Call to a member function getUserEmail() on a non-object in /usr/home/advecoag/public_html/aea/packages/problog/helpers/blog_actions.php on line 48

Browser User-Agent String

Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10) AppleWebKit/600.1.25 (KHTML, like Gecko) Version/8.0 Safari/600.1.25

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.