daniel-zahariev / php-aws-ses

PHP classes that interfaces Amazon Simple Email Service
307 stars 100 forks source link

Unexpected HTTP statu #48

Closed mufleeh closed 6 years ago

mufleeh commented 6 years ago

Hi, I am looking to use AWS SES to send emails from the website for password reset etc. I've got the domain and an email verified in AWS to use as From email. With the trigger error on I see the following error message. Do you've any clue why this appears?

Array ( [code] => 0 [error] => Array ( [Error] => Array ( [message] => Unexpected HTTP status ) ) )

daniel-zahariev commented 6 years ago

Hi @mufleeh, which call is producing the error?

ghost commented 6 years ago

The same problem.

_[15-Nov-2017 07:34:03 UTC] PHP Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/user/public_html/vendor/daniel-zahariev/php-aws-ses/src/SimpleEmailServiceRequest.php on line 181 [15-Nov-2017 07:34:03 UTC] PHP Warning: simplexml_load_string(): 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-2370111491 ECmuKO3To7OY9i9 in /home/user/public_html/vendor/daniel-zahariev/php-aws-ses/src/SimpleEmailServiceRequest.php on line 181 [15-Nov-2017 07:34:03 UTC] PHP Warning: simplexml_load_string(): ^ in /home/user/public_html/vendor/daniel-zahariev/php-aws-ses/src/SimpleEmailServiceRequest.php on line 181 [15-Nov-2017 07:34:52 UTC] PHP Warning: simplexml_load_string(): Entity: line 1: parser error : Start tag expected, '<' not found in /home/user/public_html/vendor/daniel-zahariev/php-aws-ses/src/SimpleEmailServiceRequest.php on line 181 [15-Nov-2017 07:34:52 UTC] PHP Warning: simplexml_load_string(): 220 email-smtp.amazonaws.com ESMTP SimpleEmailService-2370111491 82I2kjKFx8zZziD in /home/user/public_html/vendor/daniel-zahariev/php-aws-ses/src/SimpleEmailServiceRequest.php on line 181 [15-Nov-2017 07:34:52 UTC] PHP Warning: simplexml_load_string(): ^ in /home/user/public_html/vendor/daniel-zahariev/php-aws-ses/src/SimpleEmailServiceRequest.php on line 181_

Using your example "Basic Usage"

daniel-zahariev commented 6 years ago

Hey @mufleeh and @sloaxleak do you still experience the issue?

mufleeh commented 6 years ago

Hey @daniel-zahariev sorry the delay on responses. I just used the simple mail function afterwards, will keep you posted when I look back. Thanks for following it up.