• Resolved thecreator01

    (@thecreator01)


    Hello, in the e-mail templates, I used the {admin_email} variable to address the recipient e-mail address for e-mails sent to the administrator (such as new order, failed order), but it does not work. When I save the recipient email field as blank it still gets restored to the default value.

    https://ibb.co/dPdXZG2

    Which variable should I use to tell the recipient to use the admin email or admin user email in wordpress general settings? I couldn’t find it here; https://woocommerce.com/document/email-variables-and-merge-tags

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Rajesh K. (woo-hc)

    (@rajeshml)

    Hello @thecreator01,

    Thank you for contacting us regarding your query about email recipient settings in the WooCommerce email templates.

    In WooCommerce, when you leave the recipient email field blank for admin notifications like ‘New Order’ or ‘Failed Order,’ it defaults to the admin email address set in your WordPress General Settings. This is the expected behavior, and you usually do not need to insert any variable manually.

    However, if for some reason you need to specify the admin email explicitly or if you’re trying to set up a custom solution, then you would not use a variable such as?{admin_email}?directly in the recipient field. Instead, you should enter the actual email address you want to use as shown here https://snipboard.io/q40b8s.jpg.

    I hope this information helps.

    Thanks

    Thread Starter thecreator01

    (@thecreator01)

    Hello, thank you for your response, but I think there is a problem. @rajeshml

    Woocommerce uses the admin email in the wordpress general settings for the recipient, but when the admin email is changed, only the recipient email value of the “Payment Authentication Requested Email” template is updated.

    For the “New order”, “Cancelled order” and “Failed order” admin email templates, recipient email addresses are not updated and the old admin email address is used.

    Also, when we check the “Payment Authentication Requested Email” email template, the recipient field is always empty but the admin email is used by default.

    https://ibb.co/zVMWg4K

    For “New order”, “Cancelled order” and “Failed order”, the recipient field cannot be left blank. Even if the recipient field is deleted, the admin email is automatically saved. OK, this may be expected behavior, but it also needs to be updated when the admin email changes.

    Could you please check?

    • This reply was modified 5 months, 2 weeks ago by thecreator01.

    Hey, @thecreator01!

    Thank you for the clarification!

    I just tested and I was able to leave the New Order Recipient empty, therefore setting it to send the email to the default one and it sent to the new admin email I added on the General settings.

    When you changed the admin email on the general settings, did you validate the new email by clicking on the link that was sent to it? The default email will only change after that ??

    For “New order”, “Cancelled order” and “Failed order”, the recipient field cannot be left blank.

    This should be possible. Do you get any error messages when you try to do this?

    Looking forward to your reply.

    Have a wonderful day!

    Thread Starter thecreator01

    (@thecreator01)

    Hello, thank you for your help. @carolm29

    Yes, after changing the admin email address, I verified it by clicking on the link. I already mentioned in my previous message that after this process, the recipient e-mail address of the “Payment Authentication Requested Email” template was successfully updated.

    For example, I can save the recipient field of the New Order email template as empty and I do not encounter any errors, but when I check again (refresh the page) I see that the recipient field is not empty. The recipient field of the “Payment Authentication Requested Email” template is always empty.

    • This reply was modified 5 months, 1 week ago by thecreator01.
    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @thecreator01

    When you save the recipient field as empty for the ‘New Order’, ‘Cancelled Order’, and ‘Failed Order’ email templates, it should default to the admin email address that you’ve set in your WordPress General Settings. If it’s not, then it’s possible there might be a conflict with your theme or another plugin. The best way to determine this is to:

    • Temporarily switch your theme to Storefront or Twenty Twenty-Four
    • Disable all plugins except for WooCommerce
    • Repeat the action that is causing the problem

    If you do not see the same problem after completing the conflict test, then you know the problem was with the plugins and/or theme you deactivated. To figure out which plugin is causing the problem, reactivate your other plugins one by one, testing after each, until you find the one causing conflict. You can find a more detailed explanation on how to do a conflict test here.

    Additionally, head over to WooCommerce → Status → Tools, and do the following:

    • WooCommerce transients – Clear
    • Expired transients – Clear
    • Clear template cache – Clear
    • Capabilities – Reset Capabilities
    • Clear customer sessions -Clear
    • Product lookup tables – Regenerate
    • Regenerate the product attributes lookup table – Regenerate

    Next, please clear your browser cache and then check again.

    Let us know how that goes. Let me know once you have done a conflict test!

    Plugin Support Shameem R. a11n

    (@shameemreza)

    Hi @thecreator01

    I’m marking this topic as “resolved” due to recent inactivity. If more assistance is needed, feel free to post back here or open a new topic.

    Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.