We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

Unable to send mail using Amazon SES

I have created an Amazon AWS account and set the info in config.php, but I am gettign this error after submitting the registration form:

Catchable fatal error: Argument 1 passed to AmazonSES::__construct() must be of the type array, string given, called in C:\wamp\www\vokuro\app\library\Mail\Mail.php on line 33 and defined in C:\wamp\www\vokuro\vendor\amazonwebservices\aws-sdk-for-php\services\ses.class.php on line 71

How to fix that?



37.0k
Accepted
answer
edited Jul '14

OK, I kind of solved that by changing it to that (according to the open issue on GitHub here https://github.com/phalcon/vokuro/issues/7#issuecomment-39524818:

if ($this->amazonSes == null) {
           /* $this->amazonSes = new \AmazonSES(
                $this->config->amazon->AWSAccessKeyId,
                $this->config->amazon->AWSSecretKey
            );*/
            $this->amazonSes = new \AmazonSES(
                array("key" => $this->config->amazon->AWSAccessKeyId,
                "secret" => $this->config->amazon->AWSSecretKey)
            );
            $this->amazonSes->disable_ssl_verification();
        }

not, sure why the issue is not approved if it's several months old. Who is in charge of Vokuro repository?