joelcox / codeigniter-amazon-ses

A CodeIgniter library to interact with Amazon Web Services (AWS) Simple Email Service (SES)
http://joelcox.nl
MIT License
79 stars 31 forks source link

Contradicting Email Validation #16

Closed brwnll closed 12 years ago

brwnll commented 12 years ago

Is there a reason why this would be happening?

echo $this->amazon_ses->address_is_verified('support@smalldo.gs') ? 'Verified' : 'Not verified';

$this->amazon_ses->to('me@gmail.com');
$this->amazon_ses->from('support@smalldo.gs');
$this->amazon_ses->subject('Open me!');
$this->amazon_ses->message('<strong>Use HTML</strong>');
$this->amazon_ses->debug(TRUE);

print_r( $this->amazon_ses->send() );

Output Verified then Sender MessageRejected Email address is not verified. 64caaa79-4c55-11e1-924f-635e9ccede3d

I received the validation email and Amazon said it had been successfully validated.

joelcox commented 12 years ago

Hi Dustin,

Looks like I messed up with the return value of address_is_verified(). Could you post the output of var_dump($this->amazon_ses->address_is_verified('support@smalldo.gs') here? I do not have any problems with verifying email addresses though.

Also make sure that the to address is verified if you haven't been granted production access yet.

If you are a new Amazon SES user and have not yet received production access to Amazon SES, then you can only send email to addresses that you have previously verified. To view your list of verified email addresses, go to the AWS Management Console or refer to the Amazon SES Developer Guide.

brwnll commented 12 years ago

Ah. My mistake. It was the issue with not being moved to production yet. Thanks.