Differential D19940 Diff 47613 src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerLiteAdapter.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/adapter/PhabricatorMailImplementationPHPMailerLiteAdapter.php
Show All 18 Lines | class PhabricatorMailImplementationPHPMailerLiteAdapter | ||||
} | } | ||||
public function newDefaultOptions() { | public function newDefaultOptions() { | ||||
return array( | return array( | ||||
'encoding' => 'base64', | 'encoding' => 'base64', | ||||
); | ); | ||||
} | } | ||||
public function newLegacyOptions() { | |||||
return array( | |||||
'encoding' => PhabricatorEnv::getEnvConfig('phpmailer.smtp-encoding'), | |||||
); | |||||
} | |||||
/** | /** | ||||
* @phutil-external-symbol class PHPMailerLite | * @phutil-external-symbol class PHPMailerLite | ||||
*/ | */ | ||||
public function prepareForSend() { | public function prepareForSend() { | ||||
$root = phutil_get_library_root('phabricator'); | $root = phutil_get_library_root('phabricator'); | ||||
$root = dirname($root); | $root = dirname($root); | ||||
require_once $root.'/externals/phpmailer/class.phpmailer-lite.php'; | require_once $root.'/externals/phpmailer/class.phpmailer-lite.php'; | ||||
$this->mailer = new PHPMailerLite($use_exceptions = true); | $this->mailer = new PHPMailerLite($use_exceptions = true); | ||||
▲ Show 20 Lines • Show All 89 Lines • Show Last 20 Lines |