Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Register and recognize response headers for cc, bcc, and reply-to #1

Merged
merged 1 commit into from
Aug 28, 2015

Conversation

andrewhaines
Copy link
Contributor

This is derived from (pretty explicitly) Gagan Deep Singh's updates elsewhere.

@andrewhaines
Copy link
Contributor Author

Found a few more (re)testing issues once initially requested.

@jptoto jptoto merged commit 4a46dfb into ActiveCampaign:master Aug 28, 2015
@jptoto
Copy link
Contributor

jptoto commented Aug 28, 2015

@andrewhaines Thanks for the PR!

@JamesJosephFinn
Copy link

@andrewhaines Is there a code example of the filter(s) used to set these headers? For example, currently I'm using this snippet with the Sparkpost plugin to set replyto:

add_filter('wpsp_reply_to', function($replyTos) {
    return 'Foo Bar <foo@bar.dev>';
});

Many thanks! Pax!

@pgraham3
Copy link
Contributor

pgraham3 commented Sep 3, 2019

@JamesJosephFinn Can you try something like this:

add_filter( 'wp_mail', function( $headers['Reply-To'] ) {
  return 'Foo Bar <foo@bar.dev>';
});

The Postmark plugin overrides wp_mail so you can hook into it for setting the Reply-To address. If you are going to be using the same Reply-To address consistently for a sender signature, you can also set that up within the Postmark account as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants