• Resolved dadra

    (@dadra)


    Thanks for this plugin! I have the “From Email” field set to a specific email address, but in the emails themselves the “reply to” address shows the WP admin email address. I’d like to keep these as two different addresses, so is there a way to set the “reply to” address in my email templates without having to change the WP admin address? Thanks in advance!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi

    Try with this hook:

    <?php
    function timersys_reply_to( $args = [] ) {
    
    	if( isset( $args['headers'] ) && is_array( $args['headers'] ) )
    		$args['headers'][] = 'Reply-To: Name <[email protected]>';
    	else
    		$args['headers'] = [ 'Reply-To: Name <[email protected]>' ];
    
    	return $args;
    }
    add_filter( 'wp_mail', 'timersys_reply_to' );

    Regards

    Thread Starter dadra

    (@dadra)

    Thanks for the speedy reply! Unfortunately this code doesn’t replace the WP admin email with the new address, but instead adds it to the “reply to” line so that there are now two emails there. Like this:

    Reply-To [email protected], Name <[email protected]>

    As I think about it more, rather than manually setting the “reply to” address in functions.php, it’d be great if we could just have the “reply to” address be auto set using whatever email is used in the “from email” field in the plugin settings. Some kind of function that checks to see if the “from email” field is populated in the plugin, and if it is then it uses that for “reply to”.

    Thank you!

    • This reply was modified 3 years, 4 months ago by dadra.
    Thread Starter dadra

    (@dadra)

    Hi @gonzalesc

    Just checking to see if you’ve had a chance to look into this further. Thanks so much for your help.

    Jaso

    (@subwebsites)

    @gonzalesc am interested in plugin to use, but also interested in knowing if your actively keeping up with support and updates ? I’d like to also know about this thread issue

    Thank you

    A.Tariq

    (@arsalantariq)

    Hi, @dadra @subwebsites

    Hope you are doing good.

    Sorry for the delayed response as we have just acquired the plugin and we have added this requirement to the future roadmap and we will our best to roll out this requirement in the next release, we will try to add options to set or change “From Email” field to a specific email address.

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘How to set “reply to” address?’ is closed to new replies.