Welcome Guest, Not a member yet? Register   Sign In
Amazon SES
#1

[eluser]albertleao[/eluser]
Hello everyone! I need some help with the codeigniter spark "amazon-ses"

I have followed all the directions but now all i get is a SERVER 500 error.

This is what I have:

<code>
public function send_email() {

$this->load->spark('amazon-ses/0.3.1');

$this->amazon_ses->to('[email protected]');

$this->amazon_ses->subject('open me!');

$this->amazon_ses->message('this is html');

$this->amazon_ses->debug(TRUE);

print_r( $this->amazon_ses->send() );

}
</code>

My config in /sparks/amazon-ses/config/amazon_ses.php is the following

<code>
&lt;?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
* Config for the Amazon Simple Email Service library
*
* @see ../libraries/Amazon_ses.php
*/
// Amazon credentials
$config['amazon_ses_secret_key'] = 'removed for post';
$config['amazon_ses_access_key'] = 'removed for post';

// Adresses
$config['amazon_ses_from'] = '[email protected]';
$config['amazon_ses_from_name'] = 'homesync';
$config['amazon_ses_reply_to'] = '[email protected]';

// Path to certificate to verify SSL connection (i.e. 'certs/cacert.pem')
$config['amazon_ses_cert_path'] = 'certs/cacert.pem';

// Charset to be used, for example UTF-8, ISO-8859-1 or Shift_JIS. The SMTP
// protocol uses 7-bit ASCII by default
$config['amazon_ses_charset'] = 'UTF-8';
</code>

My certs file is sitting in a folder in the root outside the application folder. I have no idea what I'm doing wrong.
#2

[eluser]TheFuzzy0ne[/eluser]
A 500 Error is usually something to do with your .htaccess file, in the root of your Web directory.




Theme © iAndrew 2016 - Forum software by © MyBB