Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
| Show First 20 Lines • Show All 628 Lines • ▼ Show 20 Lines | try { | ||||
| $body = id(new PhutilUTF8StringTruncator()) | $body = id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumBytes($max) | ->setMaximumBytes($max) | ||||
| ->truncateString($body); | ->truncateString($body); | ||||
| $body .= "\n"; | $body .= "\n"; | ||||
| $body .= pht('(This email was truncated at %d bytes.)', $max); | $body .= pht('(This email was truncated at %d bytes.)', $max); | ||||
| } | } | ||||
| $mailer->setBody($body); | $mailer->setBody($body); | ||||
| $html_emails = false; | $html_emails = true; | ||||
| if ($use_prefs && $prefs) { | if ($use_prefs && $prefs) { | ||||
| $html_emails = $prefs->getPreference( | $html_emails = $prefs->getPreference( | ||||
| PhabricatorUserPreferences::PREFERENCE_HTML_EMAILS, | PhabricatorUserPreferences::PREFERENCE_HTML_EMAILS, | ||||
| $html_emails); | $html_emails); | ||||
| } | } | ||||
| if ($html_emails && isset($params['html-body'])) { | if ($html_emails && isset($params['html-body'])) { | ||||
| $mailer->setHTMLBody($params['html-body']); | $mailer->setHTMLBody($params['html-body']); | ||||
| ▲ Show 20 Lines • Show All 551 Lines • Show Last 20 Lines | |||||