Title: How to modify Return-Path
Last modified: September 1, 2016

---

# How to modify Return-Path

 *  Resolved [iRolfpro](https://wordpress.org/support/users/irolfpro/)
 * (@irolfpro)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/)
 * I’m using this plugin to send some newsletters within our company network with
   WP-Mail and was asked by our mail admins to fix the Return-Path in the mail-header.
 * I found some hints in the module_sending.php and/or class.phpmail.php but changing
   it to get an idea how it works, didn’t help.
 * can you give me a hint how to change the Return-Path or set it to the sender’s
   e-mail?
 * thank you in advance,
    rolf
 * [https://wordpress.org/plugins/sola-newsletters/](https://wordpress.org/plugins/sola-newsletters/)

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

 *  Plugin Author [SolaPlugins](https://wordpress.org/support/users/solaplugins/)
 * (@solaplugins)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/#post-7489562)
 * Hi Rolf.
 * The return path headers can be changed by going to ‘Newsletters’ -> ‘Settings’-
   > ‘Email Settings’ and setting the ‘Reply to’ and Reply name’ to your preferred
   name and address.
 * I hope this helps?
 *  Thread Starter [iRolfpro](https://wordpress.org/support/users/irolfpro/)
 * (@irolfpro)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/#post-7489568)
 * hi and thanks for your reply.
 * in my (free) version 4.0.14 the settings are located in the main section and 
   the settings of the reply-to-stuff is set to the preferred name and address.
   
   nevertheless the mails were send with a header parameter Return-Rath: witch is(
   maybe automatically) set to the wrong admin-alias.
 * so I’m still looking for a solution to set the Return-Path in the mail header–
   programmatically or somewhere in the GUI.
 * thank you again,
    rolf
 *  Plugin Author [SolaPlugins](https://wordpress.org/support/users/solaplugins/)
 * (@solaplugins)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/#post-7489677)
 * Hi Rolf.
 * Sorry for only getting back to you now.
 * Please go to sola-newsletters/modules/module_sending.php and scroll down to line
   309 – you’ll find a line of code that looks like this:
 * `$headers[] = 'From: '.$sent_from_name.' <'.$sent_from.'>';`
 * To my knowledge this is the only area where we change the return path when sending
   mail from wp_mail()
 * Does this help at all?
 *  Thread Starter [iRolfpro](https://wordpress.org/support/users/irolfpro/)
 * (@irolfpro)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/#post-7489681)
 * hi,
 * nope, that doesn’t fixed it. sent_from was correctly set and in the mail header.
 * I digged into it with our mail-admin and found somewhere this plugin, which solved
   the problem: [https://www.kinamo.be/en/support/faq/correctly-setting-return-path-for-wordpress-mail-functionality](https://www.kinamo.be/en/support/faq/correctly-setting-return-path-for-wordpress-mail-functionality)
 * thank you for your patience,
    rolf
 *  Plugin Author [SolaPlugins](https://wordpress.org/support/users/solaplugins/)
 * (@solaplugins)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/#post-7489696)
 * Hi Rolf.
 * I see what you mean now. So glad to hear you came right with this though.
 * My apologies for any inconvenience caused.

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

The topic ‘How to modify Return-Path’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/sola-newsletters_ae3528.svg)
 * [Nifty Newsletters (Formerly Sola Newsletters)](https://wordpress.org/plugins/sola-newsletters/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/sola-newsletters/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/sola-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/sola-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/sola-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/sola-newsletters/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [SolaPlugins](https://wordpress.org/support/users/solaplugins/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/how-to-modify-return-path/#post-7489696)
 * Status: resolved