How to use dynamic mail in woocommerce in order receive

Dynamic Mail is a feature in WooCommerce that allows you to send customized emails to customers based on their actions in your store. Here's a step-by-step guide on how to use Dynamic Mail in WooCommerce to receive orders:

Prerequisites:

  1. You need to have WooCommerce installed and activated on your WordPress website.
  2. You need to have a valid email address set up in your WordPress website's settings.

Step 1: Enable Dynamic Mail

  1. Log in to your WordPress dashboard.
  2. Go to WooCommerce > Settings > Advanced > Email.
  3. Scroll down to the "Dynamic Mail" section and toggle the switch to "Enable Dynamic Mail" to the "On" position.

Step 2: Configure Order Received Email

  1. Go to WooCommerce > Settings > Emails > Order Received.
  2. Click on the "Edit" button next to "Order Received" email.
  3. In the "Email Template" section, select the "Order Received" template.
  4. In the "Subject" field, enter a subject for the email (e.g., "Your Order #XXXXX").
  5. In the "Body" field, you can customize the email content using placeholders (e.g., {order_number}, {order_total}, etc.). You can also add custom HTML code if needed.
  6. Click "Save Changes" to save the email template.

Step 3: Configure Order Received Email Trigger

  1. Go to WooCommerce > Settings > Advanced > Email.
  2. Scroll down to the "Dynamic Mail" section and click on the "Add Trigger" button.
  3. Select "Order Received" as the trigger type.
  4. Choose the email template you created in Step 2 as the email template.
  5. Set the trigger conditions (e.g., "When an order is completed" or "When an order is paid").
  6. Click "Save Trigger" to save the trigger.

Step 4: Test the Order Received Email

  1. Place an order on your website to test the email.
  2. Check your email inbox to see if you receive the Order Received email.

Tips and Variations:

By following these steps, you should be able to set up Dynamic Mail in WooCommerce to receive orders and send customized emails to your customers.