Title: Email variable for admin email
Last modified: June 15, 2024

---

# Email variable for admin email

 *  Resolved [thecreator01](https://wordpress.org/support/users/thecreator01/)
 * (@thecreator01)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/)
 * 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](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](https://woocommerce.com/document/email-variables-and-merge-tags)

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Support [Rajesh K. (woo-hc)](https://wordpress.org/support/users/rajeshml/)
 * (@rajeshml)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17826924)
 * Hello [@thecreator01](https://wordpress.org/support/users/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](https://snipboard.io/q40b8s.jpg).
 * I hope this information helps.
 * Thanks
 *  Thread Starter [thecreator01](https://wordpress.org/support/users/thecreator01/)
 * (@thecreator01)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17827343)
 * Hello, thank you for your response, but I think there is a problem. [@rajeshml](https://wordpress.org/support/users/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](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 1 year, 11 months ago by [thecreator01](https://wordpress.org/support/users/thecreator01/).
 *  [carolm29 (woo-hc)](https://wordpress.org/support/users/carolm29/)
 * (@carolm29)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17827478)
 * Hey, [@thecreator01](https://wordpress.org/support/users/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](https://wordpress.org/support/users/thecreator01/)
 * (@thecreator01)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17827484)
 * Hello, thank you for your help. [@carolm29](https://wordpress.org/support/users/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 1 year, 11 months ago by [thecreator01](https://wordpress.org/support/users/thecreator01/).
 *  Plugin Support [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17828719)
 * Hi [@thecreator01](https://wordpress.org/support/users/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.](https://woocommerce.com/document/how-to-test-for-conflicts/)
 * 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 – a11n](https://wordpress.org/support/users/shameemreza/)
 * (@shameemreza)
 * [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17873362)
 * Hi [@thecreator01](https://wordpress.org/support/users/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](https://wordpress.org/support/plugin/woocommerce/#new-topic-0).
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Email variable for admin email’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 6 replies
 * 4 participants
 * Last reply from: [Shameem – a11n](https://wordpress.org/support/users/shameemreza/)
 * Last activity: [1 year, 11 months ago](https://wordpress.org/support/topic/email-variable-for-admin-email/#post-17873362)
 * Status: resolved