Title: Headers from Contact Form plugin
Last modified: August 21, 2016

---

# Headers from Contact Form plugin

 *  Resolved [eggrollstan](https://wordpress.org/support/users/eggrollstan/)
 * (@eggrollstan)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/)
 * The “Reply-To Header” thread that was marked “solved” was not really clear if
   the issue was fixed.
 * I have the reply-to in WP-SES settings set to “headers”, and have an Additional
   Headers in a contact form in Contact Form 7 set to “Reply-To: [your-name] <[your-
   email]>”
 * Emails sent still do not send with the stipulated “Reply-To” header.
 * [http://wordpress.org/extend/plugins/wp-ses/](http://wordpress.org/extend/plugins/wp-ses/)

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

 *  Thread Starter [eggrollstan](https://wordpress.org/support/users/eggrollstan/)
 * (@eggrollstan)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813383)
 * I’ve resolved this issue by modifying a line in the Contact Form Plugin. Since
   all emails sent through WP-SES will be sent from the specified email in the settings,
   I simply modified a line to specify the sender in the form as a “Reply-To”
 *  [dadone](https://wordpress.org/support/users/dadone/)
 * (@dadone)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813430)
 * Hi,
    Can you explain step by step what line have you modified and where?
 * Thanks.
 *  Thread Starter [eggrollstan](https://wordpress.org/support/users/eggrollstan/)
 * (@eggrollstan)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813431)
 * My solution is specific to using Contact Form 7 and WP-SES.
 * In the contact-form-7/includes/ folder, I modified line 551 of classes.php.
 * Replaced
    $headers = “From: $sender\n”;
 * with
    $headers = “Reply-To: $sender\n”;
 * After this, all emails sent with Contact Form 7 will have the Reply-To set to
   the sender.
 * Keep in mind that any updates to Contact Form 7 will overwrite this change.
 *  [dadone](https://wordpress.org/support/users/dadone/)
 * (@dadone)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813433)
 * Thanks, but it’s not working for me. I have the Reply-To: [your-name] <[your-
   email]> as Additional Headers in contact form 7, Reply To set to headers in wp
   ses and I’ve modified 551 of classes.php, but when I want to Reply, it appears
   the same e-mail address 🙁
 *  Thread Starter [eggrollstan](https://wordpress.org/support/users/eggrollstan/)
 * (@eggrollstan)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813437)
 * Odd….. I just tested the forms I had created and they work.
 * I just created a new form and it does not work… will go back and check.
 *  [dadone](https://wordpress.org/support/users/dadone/)
 * (@dadone)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813438)
 * Ok, thanks for your time, I appreciate. 🙂

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

The topic ‘Headers from Contact Form plugin’ is closed to new replies.

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

 * 6 replies
 * 2 participants
 * Last reply from: [dadone](https://wordpress.org/support/users/dadone/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/headers-from-contact-form-plugin/#post-3813438)
 * Status: resolved