[ Index ] |
PHP Cross Reference of Phabricator |
[Summary view] [Print] [Text view]
1 <?php 2 3 final class PhabricatorMailImplementationAmazonSESAdapter 4 extends PhabricatorMailImplementationPHPMailerLiteAdapter { 5 6 private $message; 7 private $isHTML; 8 9 public function __construct() { 10 parent::__construct(); 11 $this->mailer->Mailer = 'amazon-ses'; 12 $this->mailer->customMailer = $this; 13 } 14 15 public function supportsMessageIDHeader() { 16 // Amazon SES will ignore any Message-ID we provide. 17 return false; 18 } 19 20 /** 21 * @phutil-external-symbol class SimpleEmailService 22 */ 23 public function executeSend($body) { 24 $key = PhabricatorEnv::getEnvConfig('amazon-ses.access-key'); 25 $secret = PhabricatorEnv::getEnvConfig('amazon-ses.secret-key'); 26 27 $root = phutil_get_library_root('phabricator'); 28 $root = dirname($root); 29 require_once $root.'/externals/amazon-ses/ses.php'; 30 31 $service = new SimpleEmailService($key, $secret); 32 $service->enableUseExceptions(true); 33 return $service->sendRawEmail($body); 34 } 35 36 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Sun Nov 30 09:20:46 2014 | Cross-referenced by PHPXref 0.7.1 |