コード例 #1
0
ファイル: Ses.php プロジェクト: caffeina-core/core
 public function onInit($options)
 {
     $options = (object) $options;
     $region = isset($options->region) ? $options->region : 'eu-west-1';
     if (empty($options->username) || empty($options->password)) {
         throw new \Exception("[core.email.ses] You must provide an Amazon SES SMTP username and password", 1);
     }
     Smtp::onInit(['host' => "email-smtp.{$region}.amazonaws.com", 'secure' => true, 'port' => 465, 'username' => $options->username, 'password' => $options->password]);
 }