App Directory >> Amazon Simple Email Service (Amazon SES) by Eric David
- Amazon Web Services (AWS) account with Amazon SES enabled
- Amazon SES
- Simple Email Service
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.
- 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.
UsageFor testing, it is most-practical to return the results to
print_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);
This Amazon SES Vork app is based on the Amazon SimpleEmailService class created by Dan Myers and Donovan Schonknecht.