Title: Problem with e-mail template
Last modified: February 9, 2017

---

# Problem with e-mail template

 *  [sherwin_flight](https://wordpress.org/support/users/sherwin_flight/)
 * (@sherwin_flight)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-e-mail-template/)
 * I customized the e-mail templates to show the payment information, like transaction
   number, etc.
 * This works fine except for one thing.
 * Right now if a person pays with PayPal the process goes like this:
 * – order is placed, and is pending payment
    – user goes to paypal and makes a 
   payment – PayPal IPN message is received, order is updated to “processing” – 
   email is sent to user
 * However this e-mail does not have the payment info in it. If I re-send the same
   e-mail it works as expected.
 * What I don’t get is why it’s missing the first time, when the PayPal IPN is received,
   and the transaction info with it, before the e-mail is even sent.
 * Since the IPN is received before the e-mail is sent why is that info not in the
   e-mail? If I go to the order and re-send the “processing” e-mail it has the info
   that we want it to show.

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

 *  Thread Starter [sherwin_flight](https://wordpress.org/support/users/sherwin_flight/)
 * (@sherwin_flight)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-e-mail-template/#post-8787181)
 * Or maybe even have PayPal orders automatically put “on hold”, then when I manually
   change the order status the e-mail would be sent with the correct information.
 *  Plugin Support [Riaan K.](https://wordpress.org/support/users/riaanknoetze/)
 * (@riaanknoetze)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-e-mail-template/#post-8789158)
 * > Since the IPN is received before the e-mail is sent why is that info not in
   > the e-mail?
 * This isn’t correct afaik. Email is triggered before IPN is triggered when the
   user lands on the order confirmation page they’re redirected from PayPal. The
   IPN is usually sent a few seconds later. You could verify this by paying via 
   e-cheque I believe…
 *  Thread Starter [sherwin_flight](https://wordpress.org/support/users/sherwin_flight/)
 * (@sherwin_flight)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-e-mail-template/#post-8790821)
 * Thanks for the info.
 * Ideally I wouldn’t want the e-mail sent at all until after the IPN was received.
 * So let the order go through, set a “pending payment”. Then when the IPN comes
   in have that trigger the sending of the “processing” e-mail.

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

The topic ‘Problem with e-mail template’ 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/)

## Tags

 * [email](https://wordpress.org/support/topic-tag/email/)
 * [templates](https://wordpress.org/support/topic-tag/templates/)

 * 3 replies
 * 2 participants
 * Last reply from: [sherwin_flight](https://wordpress.org/support/users/sherwin_flight/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/problem-with-e-mail-template/#post-8790821)
 * Status: not resolved