Title: [Plugin: Enhanced Emails] Headers Error
Last modified: August 20, 2016

---

# [Plugin: Enhanced Emails] Headers Error

 *  [Donald Gilbert](https://wordpress.org/support/users/dilbert4life/)
 * (@dilbert4life)
 * [14 years, 9 months ago](https://wordpress.org/support/topic/plugin-enhanced-emails-headers-error/)
 * After installing the plugin, and submitting a test comment to check the enhanced
   emails, I got a headers already sent error. I found that this was due to extra
   whitespace at the end of the `action_links.php` file in the plugin. I would recommend
   just deleting the `?>` and any extra blanks lines at the end of all the plugin
   files to fix the problem.
 * Other than that, this plugin rocks and I’m glad they are working on getting it
   into core for 3.3!
 * [http://wordpress.org/extend/plugins/enhanced-emails/](http://wordpress.org/extend/plugins/enhanced-emails/)

Viewing 1 replies (of 1 total)

 *  [kitchin](https://wordpress.org/support/users/kitchin/)
 * (@kitchin)
 * [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-enhanced-emails-headers-error/#post-2257169)
 * Did not make it for 3.3. Another bug is that the variable $phpmailer->AltBody
   is not initialized. If you send an html email and then a plain email, the second
   email gets the first email’s attachment. Suggested fix in pluggable.php:
 *     ```
       $phpmailer->ClearCCs();
       	$phpmailer->ClearCustomHeaders();
       	$phpmailer->ClearReplyTos();
   
       +	$phpmailer->Body= '';
       +	$phpmailer->AltBody= '';
   
       	// From email and name
       	// If we don't have a name from the input headers
       	if ( !isset( $from_name ) )
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Enhanced Emails] Headers Error’ is closed to new replies.

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

 * 1 reply
 * 2 participants
 * Last reply from: [kitchin](https://wordpress.org/support/users/kitchin/)
 * Last activity: [14 years, 5 months ago](https://wordpress.org/support/topic/plugin-enhanced-emails-headers-error/#post-2257169)
 * Status: not resolved