Title: Undefined variable: content_type
Last modified: August 3, 2018

---

# Undefined variable: content_type

 *  Resolved [snaphappyme](https://wordpress.org/support/users/snaphappyme/)
 * (@snaphappyme)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/undefined-variable-content_type/)
 * This error appears when [Updraft plus backup](https://wordpress.org/plugins/updraftplus/)
   plugin sends a backup notice to admin email.
 * An email message comes through in plain text format; so the error may indicate
   it had tried HTML format and failed.
 * `Undefined variable: content_type (line 402, wp-content/plugins/zoho-mail/zohoMail.
   php)`

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

 *  Plugin Author [Zoho Mail](https://wordpress.org/support/users/zmintegration/)
 * (@zmintegration)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-content_type/#post-10562826)
 * [@snaphappyme](https://wordpress.org/support/users/snaphappyme/)
 * The issue is not reproducible at our end. In case, if other plugin sets the content
   type in the mail headers, we will process it.
 * For further queries, please drop an email to support[AT]zohomail[DOT]com.
 *  Thread Starter [snaphappyme](https://wordpress.org/support/users/snaphappyme/)
 * (@snaphappyme)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-content_type/#post-10562856)
 * Can you provide a sample “correctly formed” content header for HTML I can pass
   onto them.
 * Did you actually test your plugin with Updraft Plus?
 *  Plugin Author [Zoho Mail](https://wordpress.org/support/users/zmintegration/)
 * (@zmintegration)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-content_type/#post-10564049)
 * [@snaphappyme](https://wordpress.org/support/users/snaphappyme/)
 * Only if the content type is set in the mail header, it will be processed and 
   set as the content type specified by other plugin (Updraft Plus).
 * For more details, please refer the help document below:
 * [https://developer.wordpress.org/reference/functions/wp_mail/#using-headers-to-set-from-cc-and-bcc-parameters](https://developer.wordpress.org/reference/functions/wp_mail/#using-headers-to-set-from-cc-and-bcc-parameters)

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

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

 * ![](https://ps.w.org/zoho-mail/assets/icon-256x256.png?rev=1922694)
 * [Zoho Mail for WordPress](https://wordpress.org/plugins/zoho-mail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/zoho-mail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/zoho-mail/)
 * [Active Topics](https://wordpress.org/support/plugin/zoho-mail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/zoho-mail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/zoho-mail/reviews/)

## Tags

 * [content-type](https://wordpress.org/support/topic-tag/content-type/)

 * 3 replies
 * 2 participants
 * Last reply from: [Zoho Mail](https://wordpress.org/support/users/zmintegration/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/undefined-variable-content_type/#post-10564049)
 * Status: resolved