Skip to content

Contact Form: Add a plain-text alternative to outbound messages#6671

Merged
samhotchkiss merged 1 commit intomasterfrom
fix/grunion-text-alternative
Mar 27, 2017
Merged

Contact Form: Add a plain-text alternative to outbound messages#6671
samhotchkiss merged 1 commit intomasterfrom
fix/grunion-text-alternative

Conversation

@iandunn
Copy link
Copy Markdown

@iandunn iandunn commented Mar 15, 2017

This avoid's SpamAssassin's MIME_HTML_ONLY rule.

See #6114

Testing instructions:

  1. From master, fill out a [contact-form] and copy the email source to http://spamcheck.postmarkapp.com/
  2. Note the triggered MIME_HTML_ONLY rule
  3. Check out this branch, and re-run the test. The rule should no longer be triggered.

This avoid's SpamAssassin's `MIME_HTML_ONLY` rule.

See #6114
@jeherve jeherve added [Feature] Forms [Pri] Normal [Status] Needs Review This PR is ready for review. Enhancement Changes to an existing feature — removing, adding, or changing parts of it labels Mar 16, 2017
*/
$headers = 'From: "' . $comment_author . '" <' . $from_email_addr . ">\r\n" .
'Reply-To: "' . $comment_author . '" <' . $reply_to_addr . ">\r\n" .
'Content-Type: text/html; charset="' . get_option( 'blog_charset' ) . '"';
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we be doing this via wp_mail_content_type instead?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think so. Grunion isn't setting the content type anymore, it's relying on PHPMailer to do it. It seems like adding code to Grunion to set the type would be redundant and possible lead to errors in the future.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doh, you were right :)

@samhotchkiss samhotchkiss merged commit d38df33 into master Mar 27, 2017
@samhotchkiss samhotchkiss deleted the fix/grunion-text-alternative branch March 27, 2017 22:01
@samhotchkiss samhotchkiss removed the [Status] Needs Review This PR is ready for review. label Mar 27, 2017
jeherve added a commit that referenced this pull request Mar 28, 2017
samhotchkiss pushed a commit that referenced this pull request Mar 29, 2017
* Readme: remove old release and add skeleton for 4.8.

* Changelog: add #6572

* Changelog: add #6567

* Changelog: add #6542

* Changelog: add #6527

* Changelog: add #6508

* Changelog: add #6478

* Changelog: add #6477

* Changelog: add #6249

* Update stable version and remove old version from readme.

* Changelog: add 4.7.1 to changelog.

* Readme: add new contributor.

* Sync: update docblock @SInCE version.

Related: #6053

* Changelog: add release post.

* changelog: add #6053

* Changelog: add #6413

* Changelog: add #6482

* Changelog: add #6584

* Changelog add #6603

* Changelog: add #6606

* Changelog: add #6611

* Changelog: add #6635

* Changelog: add #6639

* Changelog: add #6684

* Changelog: add #6710

* Changelog: add #6711

* Changelog: add #5461

* Testing list: update Settings UI feedback prompt.

Props @MichaelArestad

* Changelog: add #6789

* Changelog: add #6778

* Changelog: add #6777

* Changelog: add #6775

* Changelog: add #6755

* Changelog: add #6731

* Changelog: add #6721

* Changelog: add #6705

* Changelog: add #6702

* Changelog: add #6671

* Changelog: add #6637

* Changelog: add #6582

* Changelog: add #6566

* Changelog: add #6555

* Changelog: add #6529

* Changelog: add #6344

* Changelog: add #5763

* Changelog: add #5503

* Changelog: update #6637 changelog.

@see 40e115c#commitcomment-21523982

* Changelog: add #6699

* Changelog: add #6632

* Changelog: add #6769

* Changelog: add #6707

* Changelog: add #6590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Feature] Forms [Pri] Normal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants