daniel-zahariev / php-aws-ses

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

error response #80

Open unnikr opened 3 years ago

unnikr commented 3 years ago

SimpleEmailService.php

line number 581

if($ses_response->error !== false) {
            if (($this->__trigger_errors && ($trigger_error !== false)) || $trigger_error === true) {
                $this->__triggerError('sendEmail', $ses_response->error);
                return false;
            }
            return $ses_response;
        }

if thisreturn false comes inside the condition it won't return the proper error response. it will return only false

I tried a email id like someonegit.in instead of somene@git.in it returns false and print the error warning instead of proper error response