Title: Include Sender header
Last modified: February 19, 2022

---

# Include Sender header

 *  Resolved [Aries-Belgium](https://wordpress.org/support/users/aries-belgium/)
 * (@aries-belgium)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/include-sender-header/)
 * If the Sender header is missing Mailgun will automatically generate one based
   on the domain and the from email, like: “info=domain.com@domain.com”. Some spam
   filter will flag this as spam because the sender email address could not be verified.
 * This can easily be fixed by including the Sender header in the message. With 
   the API you set the “h:Sender” parameter:
 *     ```
           $body = array(
               'from'    => "{$from_name} <{$from_email}>",
               'h:Sender' => $from_email,
               'to'      => $to,
               'subject' => $subject,
           );
       ```
   
    -  This topic was modified 4 years, 3 months ago by [Aries-Belgium](https://wordpress.org/support/users/aries-belgium/).

The topic ‘Include Sender header’ is closed to new replies.

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

 * 0 replies
 * 1 participant
 * Last reply from: [Aries-Belgium](https://wordpress.org/support/users/aries-belgium/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/include-sender-header/)
 * Status: resolved