• Hi,
    I use this plugin and it’s great. I set the sending for ‘each post’. If I sent email from ‘admin’, there is no problem. But when I set sending emai from ‘post author’, then it’s not sending.

    The ‘post author’ is another email address such as [email protected]. Could that be a problem?

    p.s. I have a front-end posting and allow user to log in and post. So user can register as [email protected] and then post. Then that post can be sent out to other subscribers.

    p.p.s: will this issue got solved if I bought the Subscribe2 HTML (paid version)?

    https://ww.wp.xz.cn/plugins/subscribe2/

Viewing 8 replies - 1 through 8 (of 8 total)
  • @bruinkid

    Your hosting provider will be blocking your emails when you use ‘Post Author’ because the sender address isn’t on the same domain as your blog.

    Why can’t you / aren’t you using an admin account as the sender with an on-domain email address? That’s all I’d suggest you do in the free and paid versions.

    Thread Starter bruinkid

    (@bruinkid)

    Hi,
    I am using my own dedicated server. How can I get this not blocked and get it sent?

    Thread Starter bruinkid

    (@bruinkid)

    p.s. I want to send using ‘post author’ because I want the recipient able to reply to sender email directly.

    @bruinkid

    Emails coming from your domain that appear to be coming from a different email server will be very likely to be marked as spam. If you want email replies to go to the post author you’d be better served using the ‘s2_email_headers’ API hook in Subscribe2 to change the email ‘Reply-To’ header to the email address of the post author while keeping the ‘From’ address as an address on your domain.

    Thread Starter bruinkid

    (@bruinkid)

    Thanks a lot. Can you be more specific on what are coding and in which file to insert it?

    @bruinkid

    You need to create your own plugin. Pluginception is an excellent plugin that helps you do this if you are new to it:
    https://ww.wp.xz.cn/plugins/pluginception/

    I’m not sure if this will work as it is untested but you’d need something like:

    function my_s2_headers($header) {
    	global $post;
    	$author = get_userdata( $post->post_author );
    	$authorname = html_entity_decode( $author->display_name, ENT_QUOTES );
    	$authoremail = $author->user_email;
    	$header['Reply-To'] = $authorname . ' <' . $authoremail . '>';
    	return $header;
    }
    add_filter('s2_email_headers', 'my_s2_headers');

    Thread Starter bruinkid

    (@bruinkid)

    Thanks. Do I just put this in functions.php?

    @bruinkid

    That or create a plugin.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Send email from 'post author' not working’ is closed to new replies.