AWS SES发送电子邮件,但在

时间:2017-01-12 22:13:59

标签: php html amazon-web-services

try {
        $ses_result = $client->sendRawEmail(
                array(
            'RawMessage' => array(
                'Data' => $msg
            )
                ), array(
            'Source' => $from,
            'Destinations' => $to_str
                )
        );
        //email is sent properly, but crashes at this point sending an error 500 (php)
        if ($ses_result) {
            $res->message_id = $ses_result->get('MessageId');
        } else {
            $res->success = false;
            $res->result_text = "Amazon SES did not return a MessageId";
        }
}

这部分使用AWS SES的代码在发送电子邮件后崩溃,它发送正确,但是在我放置评论的部分崩溃并发送错误500.文档对此没有实际帮助,因为它只是说:

  

InternalFailure
  由于未知错误,异常或失败,请求处理失败。

     

HTTP状态代码:500

我想知道是否有人经历过这样的事情,或者我是否能得到一些帮助。

更新:这是我在启用错误显示后得到的内容:

  

致命错误:未捕获错误:在/var/www/html/xillingo-2.0/assets/aws/Aws/Api/Parser/PayloadParserTrait.php:39中找不到类'SimpleXMLElement'堆栈跟踪:#0 / var / www / html / xillingo-2.0 / assets / aws / Aws / Api / Parser / QueryParser.php(44):Aws \ Api \ Parser \ QueryParser-> parseXml(Object(GuzzleHttp \ Psr7 \ Stream))#1 / var /www/html/xillingo-2.0/assets/aws/Aws/WrappedHttpHandler.php(126):Aws \ Api \ Parser \ QueryParser-> __ invoke(Object(Aws \ Command),Object(GuzzleHttp \ Psr7 \ Response)) #2 /var/www/html/xillingo-2.0/assets/aws/Aws/WrappedHttpHandler.php(93):Aws \ WrappedHttpHandler-> parseResponse(对象(Aws \ Command),对象(GuzzleHttp \ Psr7 \ Request),对象(GuzzleHttp \ Psr7 \ Response),数组)#3 /var/www/html/xillingo-2.0/assets/aws/GuzzleHttp/Promise/Promise.php(203):Aws \ WrappedHttpHandler-> Aws {closure}(对象(GuzzleHttp \ Psr7 \ Response))#4 /var/www/html/xillingo-2.0/assets/aws/GuzzleHttp/Promise/Promise.php(156):GuzzleHttp \ Promise \ Promise :: callHandler(1,Object( GuzzleHttp \ Psr7 \ Response),Arra y)第39行的/var/www/html/xillingo-2.0/assets/aws/Aws/Api/Parser/PayloadParserTrait.php中的#5 /var/www/html/xillingo-2.0/assets/aws/GuzzleH

更新2: nvm ...我完全迟迟了......解决了......

0 个答案:

没有答案