LoginSignup
2
2

More than 5 years have passed since last update.

AmazonSESでPHPからsend_emailしたときに成功したか知りたかったです。

Posted at

AmazonSESでsend_email()を読んだ時にメールが飛んだか確認したくなりました\(^o^)/

レスポンスをisOK();する

emailの成功判定
$response = $email->send_email(
    'no-reply@amazon.com', // Source (aka From)
    array('ToAddresses' => array( // Destination (aka To)
        'nobody@amazon.co
        ... 

# 送信判定
var_dump($response->isOK());

isOK()を呼ぶとtrueかfalseが返ります。

メールが送信されていなかったのがわかりました(☝ ՞ਊ ՞)

参考

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2