I have been using Amazon SES for sometime now through the PHP library found here, now I have new EC2 Debian instance, and SES is not working most of the time, sometimes when I restart the Apache server, SES sends emails for few hours and then stops working again, I get the following error in the server log:
[Wed May 23 15:20:01 2012] [error] [client xxxxxxxxxx] PHP Notice: Undefined property: SimpleEmailServiceRequest::$resource in /path-to/library/aws/ses.php on line 491 [Wed May 23 15:20:01 2012] [error] [client xxxxxxxxxx] PHP Warning: SimpleEmailService::sendEmail(): 6 Couldn't resolve host 'email.us-east-1.amazonaws.com' in /path-to/library/aws/ses.php on line 357
ssl mod is enabled on the server.
Thanks for your help.
The only solution that worked for me was to get rid of the EC2 instance I was using and replacing it with a different one, since I did, more than a month ago, I have never had this problem again.