Title: Return-Path
Last modified: August 20, 2016

---

# Return-Path

 *  [Georg Ludwig](https://wordpress.org/support/users/georg-ludwig/)
 * (@georg-ludwig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/)
 * Hi, I’ve got a problem with undeliverable mails.
 * The notice that a mail is undeliverable is sent to the adminstrator mail address
   of my webspace. As I’m hosting several blogs, I want them to be delivered to 
   the administrator of each blog seperately. Therfore I’d need to adjust the return-
   path.
 * I’ve tried a small fix-plugin someone posted in a newsgroup which adds an action
   into the phpmailer_init – it sets the sender header attribute to be the same 
   as the from-content:
 *     ```
       function __construct() {
         add_action( 'phpmailer_init', array( $this, 'fix' ) );
       }
       function fix( $phpmailer ) {
         $phpmailer->Sender = $phpmailer->From;
       }
       ```
   
 * Works pretty fine, but breaks the ContactForm7 on certain browser/machine-constellations
   and I don’t know why – people using those combinations cannot send messages via
   the form anymore….
 * So I’d like to have this functionality in Easymail only. Where do I have to add
   code to ?
 * Regards,
    Georg
 * [http://wordpress.org/extend/plugins/alo-easymail/](http://wordpress.org/extend/plugins/alo-easymail/)

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

 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/#post-3550369)
 * You can filter the newsletter headers, maybe it can help you. Here you are a 
   couple of examples:
    [http://www.eventualo.net/forum/topic/1085#post-2954](http://www.eventualo.net/forum/topic/1085#post-2954)
   [http://wordpress.org/support/topic/author-attribution?replies=5#post-3826046](http://wordpress.org/support/topic/author-attribution?replies=5#post-3826046)
 * Otherwise, the function filtering phpmailer is `alo_em_alt_mail_body` in _alo-
   easymail\_funcionts.php_ about line 1726.
 *  Thread Starter [Georg Ludwig](https://wordpress.org/support/users/georg-ludwig/)
 * (@georg-ludwig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/#post-3550370)
 * Thought I’d work like a charm – but it doesn’t….as You hook the action ‘phpmailer_init’
   this code is called for WCF7 as well ….. even that was what I didn’t want to 
   have 😉
 * So I placed it into the
 * `if( $phpmailer->ContentType == 'text/html') {`
 * section – will work unless I’d send anything else via text/html – You should 
   be aware of this also ! 😉
 * Regards and thx,
    Georg
 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/#post-3550382)
 * Right, but if you look at 1st link in my previous post you can see that user 
   adds a filter to `alo_easymail_newsletter_headers` hook, that is used only by
   my plugin and not by other plugins like CF7. Maybe you can make an attempt and
   let us know…
 *  Thread Starter [Georg Ludwig](https://wordpress.org/support/users/georg-ludwig/)
 * (@georg-ludwig)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/#post-3550387)
 * Solution in Link 1 does not work for me.
    Solution in Link 2 is the same.
 * So I stay with the patch in alo-easymail_functions.php – this one works 😉
 *  Plugin Author [eventualo](https://wordpress.org/support/users/eventualo/)
 * (@eventualo)
 * [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/#post-3550388)
 * Ok 🙂 thanks a lot for the report.

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

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

 * ![](https://s.w.org/plugins/geopattern-icon/alo-easymail_574f4b.svg)
 * [ALO EasyMail Newsletter](https://wordpress.org/plugins/alo-easymail/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/alo-easymail/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/alo-easymail/)
 * [Active Topics](https://wordpress.org/support/plugin/alo-easymail/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/alo-easymail/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/alo-easymail/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [eventualo](https://wordpress.org/support/users/eventualo/)
 * Last activity: [13 years, 2 months ago](https://wordpress.org/support/topic/return-path/#post-3550388)
 * Status: not resolved