3 final class PhabricatorEmailFormatSetting
4 extends PhabricatorSelectSetting
{
6 const SETTINGKEY
= 'html-emails';
8 const VALUE_HTML_EMAIL
= 'html';
9 const VALUE_TEXT_EMAIL
= 'text';
11 public function getSettingName() {
12 return pht('HTML Email');
15 public function getSettingPanelKey() {
16 return PhabricatorEmailFormatSettingsPanel
::PANELKEY
;
19 protected function getSettingOrder() {
23 protected function getControlInstructions() {
25 'You can opt to receive plain text email from Phabricator instead '.
26 'of HTML email. Plain text email works better with some clients.');
29 public function getSettingDefaultValue() {
30 return self
::VALUE_HTML_EMAIL
;
33 protected function getSelectOptions() {
35 self
::VALUE_HTML_EMAIL
=> pht('Send HTML Email'),
36 self
::VALUE_TEXT_EMAIL
=> pht('Send Plain Text Email'),