• Resolved colinfroggatt

    (@colinfroggatt)


    Hi. We have recently started to see issues with system emails (new order, failed payment etc) where the the reply-to address is set to the customers email, rather than the sender (from) address.

    This has led to an embarrassing situation where a customer received an email meant for internal reading!

    This occurs on 3 different systems (1 test, 2 live). I have tested with Post SMTP, PHPMailer and WP Mail SMTP plugins, so pretty sure it’s not the SMTP plugin mangling stuff.

    The email headers for a New Order email look like this:

    To: [email protected]
    Subject: [TEST my shop]: New order #7415
    X-PHP-Originating-Script: 692:PHPMailer.php
    Date: Thu, 13 May 2021 15:46:00 +0000
    From: TEST my shop <[email protected]>
    Reply-To: Colin Personal Test <[email protected]>
    Message-ID: <[email protected]>
    X-Mailer: PHPMailer 6.2.0 (https://github.com/PHPMailer/PHPMailer)

    Where ‘Colin Personal Test <[email protected]>’ is the customer email and ‘[email protected]’ is the shop/system email.

    Reply-to should be set to ‘[email protected]’ NOT ‘[email protected]

    Any ideas gratefully accepted.

    Woo: 5.3.0
    Woo subs: 3.1.1
    WP: 5.7.2
    PHP 7.3.27

    -Colin

    • This topic was modified 3 years, 6 months ago by colinfroggatt.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Mirko P.

    (@rainfallnixfig)

    Hi @colinfroggatt,

    The email for a new order is being sent out to [email protected] and not to the customer. You can check the recipient under WooCommerce → Settings → Emails → New Order (Manage) → Recipient(s).

    Reply-To is useful to have the customer’s email address in case you need to contact the customer for any notification you may need to send them about their order. This feature was implemented as an idea suggested on our Ideas Board that you can check here.

    If you want to change that feature you’ll want to add custom code. There are more details on how to do that in Stack Overflow here. If you need any help we’d recommend getting in touch with a web developer or one of the customization experts listed at: https://woocommerce.com/customizations/.

    Cheers.

    Thread Starter colinfroggatt

    (@colinfroggatt)

    Hi Mirko. Thanks for the reply. Is setting the ‘reply-to’ field to the customers email address a recent change?

    I can see that the SO link you posted shows how to disable this so I’ll use that to turn it off.

    thanks, Colin

    Mirko P.

    (@rainfallnixfig)

    Hi @colinfroggatt,

    Is setting the ‘reply-to’ field to the customers email address a recent change?

    It looks like this change was made in June 2018 and you can find more details here: https://github.com/woocommerce/woocommerce/issues/20522.

    I can see that the SO link you posted shows how to disable this so I’ll use that to turn it off.

    Awesome! Thank you for letting us know. I’m closing this thread now but feel free to open a new thread if you require further assistance.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘wrong reply-to recipient in system emails’ is closed to new replies.