WordPress.org

Forums

Subscribe To Comments Reloaded
[resolved] Cannot send emails due to duplicate header (3 posts)

  1. creyes123
    Member
    Posted 3 years ago #

    PHPMailer (part of WordPress) unconditionally adds the "MIME-Version" header to outgoing email messages. This causes MTAs like Postfix and Exim to reject the emails due to duplicate headers.

    There are two places in subscribe-to-comments-reloaded.php where I applied a simple patch:

    // PhpMailer adds this header without checking if it already exists
    // $headers = "MIME-Version: 1.0\n";
    $headers = "From: $from_name <$from_email>\n";

    http://wordpress.org/extend/plugins/subscribe-to-comments-reloaded/

  2. creyes123
    Member
    Posted 3 years ago #

    I found a couple more places that need to have a similar modification made:

    templates/request-management-link.php
    templates/subscribe.php

  3. camu
    Member
    Plugin Contributor

    Posted 3 years ago #

    Noted, thank you.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Subscribe To Comments Reloaded
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic