Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Hard-code htmlified mail messages to font-size: 16px so they don't sh…

…ow up tiny in mail clients.
  • Loading branch information...
commit 68180be05d3c85dffd4b06ad4f08e08c0d9f6001 1 parent aa41d0e
@ardell ardell authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 phocoa/framework/Mailer.php
View
4 phocoa/framework/Mailer.php
@@ -367,8 +367,8 @@ function htmlify()
// Otherwise htmlify the text part of the message and slam it into the html part of the email
$htmlMessage = $this->getMessageTEXT();
$htmlMessage = preg_replace('/(https?:\/\/\S+)/', '<a href="$1">$1</a>', $htmlMessage); // Use a regex to detect all URLs and wrap them in <a> tags
- $htmlMessage = "<pre>{$htmlMessage}</pre>"; // Wrap the message in a <pre> tag
- $this->setMessageHTML($htmlMessage); // Slam the htmlified version of the plain text into the HTML part of the email
+ $htmlMessage = "<pre style='font-size: 16px;'>{$htmlMessage}</pre>"; // Wrap the message in a <pre> tag
+ $this->setMessageHTML($htmlMessage); // Slam the htmlified version of the plain text into the HTML part of the email
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.