Reply-to options
-
Hi there!
Thank you for the amazing plugin!
Because of this message from Amazons SES, I set up subdomains and addresses for marketing and transactional emails. Those email addresses (on subdomain) are send-only. No emails can be received there.
I am trying to figure out how to send emails FROM those addresses (with subdomain), but have the Reply-to address something like [email protected].
Could you please give me a pointer?
What I have tried so far:
Add the following snippet to functions.php:
/** * START of Change reply email address */ add_filter( 'woocommerce_email_headers', 'change_reply_to_email_address', 10, 3 ); function change_reply_to_email_address( $header, $email_id, $order ) { // HERE below set the name and the email address $reply_to_name = '[REDACTED]'; $reply_to_email = '[REDACTED]'; // Get the WC_Email instance Object $email = new WC_Email($email_id); $header = "Content-Type: " . $email->get_content_type() . "\r\n"; $header .= 'Reply-to: ' . $reply_to_name . ' <' . $reply_to_email . ">\r\n"; return $header; } /** * END OF Change reply email address */
However, for starters this only affects WooCommerce emails, not ALL emails (via different plugins).
Would you consider implementing a Reply-to address per Connection? That way I could route, for example, all transactional emails through one Amazon SES Connection (using a particular subdomain.domain.tld), and always have those emails have a specific Reply-to address?
Or are there other solutions for this that I am not thinking of?
Thank you very much for your time and reply!
- The topic ‘Reply-to options’ is closed to new replies.