From:

// $Id: smtp.module,v 1.15.2.17 2008/03/19 20:13:49 oadaeh Exp $

outgoing mail gets two Content-Type: tags within the messages (and slightly different), tripping some spam filters.

I've tracked this back to what I think is the trigger; the following sprintf (commented out) generated one of the two Content-Type tags.

            case "plain":
                $result .= $this->HeaderLine("Content-Transfer-Encoding", $this->Encoding);
                // Hoff: removed one of two Content-Type: lines from outgoing mail headers
                // $result .= sprintf("Content-Type: %s; charset=\"%s\"",
                //                     $this->ContentType, $this->CharSet);
                break;
            case "attachments":
                // fall through
            case "alt_attachments":

Comments

oadaeh’s picture

What is the other module you are using with this module that you are seeing this behavior with? It's likely that there are two modules adding this information, and removing that line will not be good for two reasons: 1) the modules which don't add that setting will not have it in their messages, causing greater problems, and 2) that part of the code is in the added PHPMailer class that I intend to remove eventually, and solving the problem in this way will not be a permanent fix.

I'm currently working through some problems with the extraction and upgrade of PHPMailer in the 6.x port. Once I figure everything out there, I'll be backporting the changes, and that code will not be included in this module.

akalata’s picture

Status: Active » Postponed (maintainer needs more info)
oadaeh’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)