Title: Undefined variable
Last modified: May 23, 2017

---

# Undefined variable

 *  [y0ngjun](https://wordpress.org/support/users/y0ngjun/)
 * (@y0ngjun)
 * [8 years, 12 months ago](https://wordpress.org/support/topic/undefined-variable-44/)
 * Hello,
 * I’m using wooCommerce version 2.5.2. Custom email has been set up and is able
   to send email. However, when i checked the email, there is one error message 
   at the bottom of the email.
 * Notice: Undefined variable: email in /home/gsc/gscwoo/wp-content/plugins/woo-
   custom-emails/admin/class-wcemails-instance.php on line 104
 * which is basically this line
 * do_action( ‘woocommerce_email_footer’, $email );
 * May I know how I can solve this issue so it will not appear at my email.
 * Thank you

Viewing 1 replies (of 1 total)

 *  [Tom Prince](https://wordpress.org/support/users/ecoboff1/)
 * (@ecoboff1)
 * [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-44/#post-9382370)
 * I added the $email variable myself with an empty string
 * `$email = ''; //variable is the string of html to insert into the footer`
 * This then allows this section to work, however I’m not sure what the developers
   intend to do here

Viewing 1 replies (of 1 total)

The topic ‘Undefined variable’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-custom-emails_90cfea.svg)
 * [Woo Custom Emails](https://wordpress.org/plugins/woo-custom-emails/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-custom-emails/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-custom-emails/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-custom-emails/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-custom-emails/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-custom-emails/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tom Prince](https://wordpress.org/support/users/ecoboff1/)
 * Last activity: [8 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-44/#post-9382370)
 * Status: not resolved