Send email to the specified Copy to email address when resending receipt

Created on 9 January 2024, 10 months ago
Updated 19 January 2024, 10 months ago

In Order Types you can specify an email address for: "Send a copy of the receipt to this email:" which is great when the customer places the order. However, when you resend the receipt (often times this happens due to changes in customer/order info) a copy is not sent to the address specified in the "Send a copy of the receipt to this email:"
This is a feature request to also send a copy to the specified email in "Send a copy of the receipt to this email:" when you resend the receipt.

✨ Feature request
Status

Active

Version

2.0

Component

Order

Created by

πŸ‡ΊπŸ‡ΈUnited States djween

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @djween
  • Second this request.

    MailChannels entered an incorrect field into a DNSSEC DS record for mailchannels.net, causing name resolution errors.

    Our orders were completing and payment received but emails were not being sent out.
    Although we can request to resend receipt but this will only send a copy to the customer and not a copy to us for our own record.

  • πŸ‡ΊπŸ‡¦Ukraine abramm Lutsk

    Just checked the code, and it should be easy to implement.
    Also, this appears to be a duplicate of #3236416: OrderReceiptMail should honor order BCC even if not passed to send() β†’ .

    However, a UX question arises.
    a) Should receipts copies be always resent to the BCC address? I don't think this is an option as it would change the behavior of existing sites on upgrades.
    b) Or should there be a setting in order type (like a 'Send copies of re-sent receipts' checkbox next to the 'Send a copy of the receipt to this email' field in order type settings)?
    c) Or maybe the checkbox could be added to the resend confirmation form/page.

    I'd prefer option b) but it's up to Commerce maintainers to decide.

  • πŸ‡ΊπŸ‡ΈUnited States lisastreeter

    Just chiming in here since I did something similar to option "c" with a little bit of custom code. It's been working well in production for many months now (used on a daily basis.) Most of our orders are created administratively, so "resend receipt" for us is actually used to send the "initial" receipt.

    Here's a full description of what I did: https://www.susubi.io/sa/order-receipt-resend-copy

    The biggest difference between the request here and what I did is that we have an option to copy the address of the administrative user who clicks the button rather than the generic "customer service" email that's copied when receipts are sent automatically.

Production build 0.71.5 2024