AutomateWoo: Use the customer.email variable

This reference is for developers configuring AutomateWoo email content. It explains how to use the customer.email variable when an email needs the current customer’s address.

Note:

This is a Developer level doc. If you are unfamiliar working with code and resolving potential conflicts, we recommend you work with a Woo Agency Partner for larger projects, or find a WooCommerce developer on Codeable for smaller customizations. We are unable to provide support for customizations under our Support Policy.

Prerequisites

↑ Back to top
  • Create or edit an AutomateWoo workflow with a Send Email action.
  • Keep the workflow disabled until you have verified the recipient with test data.

Use the customer email variable

↑ Back to top

Use the variable where AutomateWoo expects the current customer’s email address, such as the recipient field in a Send Email action:

{{ customer.email }}

Expected result

↑ Back to top

When the workflow runs for a customer, AutomateWoo resolves the variable to that customer’s email address.

Verify before enabling the workflow

↑ Back to top
  1. Preview the workflow with test data and confirm that the resolved recipient is correct.
  2. Send a test email and confirm that it arrives at the expected address.
  3. Enable the workflow only after the recipient and email content are correct.

Troubleshoot an empty or incorrect recipient

↑ Back to top
  • Confirm that the workflow event provides a customer context.
  • Check the test data and customer record for a valid email address.
  • Review the workflow queue or logs before testing again.

Risk and recovery

↑ Back to top

Do not enable a workflow until its recipient has been verified. If a test sends to the wrong address, leave the workflow disabled, correct the customer context or test data, and send another test.

Related documentation

↑ Back to top

Related Products

Offer Royal Mail shipping rates to your customers.

Get shipping rates from the Canada Post Ratings API which handles both domestic and international parcels.

Use of your personal data
We and our partners process your personal data (such as browsing data, IP Addresses, cookie information, and other unique identifiers) based on your consent and/or our legitimate interest to optimize our website, marketing activities, and your user experience.