• 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/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author eventualo

    (@eventualo)

    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://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

    (@georg-ludwig)

    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

    (@eventualo)

    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

    (@georg-ludwig)

    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

    (@eventualo)

    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.