Title: Headers missing
Last modified: August 31, 2016

---

# Headers missing

 *  Resolved [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/)
 * I’m using the plugin since this weekend. I like it a lot… It gives me quite some
   insight in my mailing issues…
 * I have the same issue as is described [here](https://wordpress.org/support/topic/failed-mail?replies=4).
   All my other mails are received but not the emails which are sent out by WordPress/
   S2.
 * I noticed none of these emails have headers. I know your plugin doesn’t take 
   care of this, but would you know a way how to add them ? I have been looking 
   into using [wp_mail()](https://codex.wordpress.org/Plugin_API/Filter_Reference/wp_mail)
   but I can’t make the headers work…
 * Hope you can help me out or point me in the right direction… I hope you have 
   a bit more experience with it than I have 🙂
 * [https://wordpress.org/plugins/wp-mail-logging/](https://wordpress.org/plugins/wp-mail-logging/)

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

 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261773)
 * Hi Beee,
 * really happy to hear that you like the plugin.
    That really sounds like a problem
   of WordPress/S2. You could add the missing header if the title is constant. Maybe
   like this (untested, hack):
 *     ```
       add_filter( 'wp_mail', 'my_wp_mail_filter', 11 );
       function my_wp_mail_filter( $args ) {
   
       	if( empty( $args['subject'] ) || ( 0 != strcmp($args['subject'], 'The Subject of there S2 mails.' ) ) {
       		return $args;
       	}
   
       	$args['headers'] = array("missingheader");
   
       	return $args;
       }
       ```
   
 * But I think you should ask them.
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261775)
 * Thanks for the quick reply. I know the issue is not caused by your plugin but
   I was hoping for some points in the right direction…
 * I was able to send correct headers from my own mail function as described [here](https://wordpress.org/support/topic/wp_mail-not-working?replies=6).
 * If I can implement that with the WP emails sent out then I’m golden…
 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261780)
 * > If I can implement that with the WP emails sent out then I’m golden…
 * That’s what the filter above does if I understand you right.
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261782)
 * Ok… I’ll run with it….
 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261787)
 * Otherwise you have to invesigate the code of S2. Find the difference between 
   the wp_mail calls in there. Maybe they don’t set the headers by mistake.
 *  Thread Starter [Beee](https://wordpress.org/support/users/beee/)
 * (@beee)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261793)
 * I think i’ll just contact s2 support…. Buying the pro has its perks 😉
 *  [No3x](https://wordpress.org/support/users/no3x/)
 * (@no3x)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261892)
 * Please report when you found the cause.

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

The topic ‘Headers missing’ is closed to new replies.

 * ![](https://ps.w.org/wp-mail-logging/assets/icon-256x256.jpg?rev=2562296)
 * [WP Mail Logging](https://wordpress.org/plugins/wp-mail-logging/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mail-logging/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mail-logging/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mail-logging/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mail-logging/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mail-logging/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [No3x](https://wordpress.org/support/users/no3x/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/headers-missing/#post-7261892)
 * Status: resolved