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 topUse 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 topWhen the workflow runs for a customer, AutomateWoo resolves the variable to that customer’s email address.
Verify before enabling the workflow
↑ Back to top- Preview the workflow with test data and confirm that the resolved recipient is correct.
- Send a test email and confirm that it arrives at the expected address.
- 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 topDo 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.