App Directory >> Amazon Simple Email Service (Amazon SES) by Eric David
Download this App
Requirements:
- Amazon Web Services (AWS) account with Amazon SES enabled
- package
- Amazon SES
- version
- 1.0.0
- SES
- Simple Email Service
- license
- BSD
Amazon Simple Email Service (Amazon SES)
Sends an email via Amazon SES using approximately the same method-signature as the email method that ships with Vork that sends via the PHP mail() method.
Prerequisites
- Create an account with Amazon Simple Email Service (Amazon SES)
- Set the $AMAZON accessKey and secretKey in the Vork /.config file - your Access Key ID and Secret Access Key can be found with your Amazon Web Services (AWS) account on the Security Credentials page, within the Access Credentials section.
- Before you can send an email with SES you must verify the from-address with Amazon, this is as simple as executing:
get::component('amazonSes')->sesVerifyEmailAddress($email);
and then check your mail and follow the verification instructions sent to you. You only need to do this prior to the first time you use a sender-email address.
Usage
For testing, it is most-practical to return the results toprint_r()
as the response format varies:$args = array(
'to' => 'recipient@example com',
'from' => 'sender@example com',
'subject' => 'Hello World',
'body' => 'This arrives as <span style="color: red;">HTML</span> email',
'html' => true
);
$amazonSes = get::component('amazonSes')->sendEmail($args);
print_r($amazonSes);
This Amazon SES Vork app is based on the Amazon SimpleEmailService class created by Dan Myers and Donovan Schonknecht.
App Files
- mvc
- components
- packages