Skip to content

geoloqi/Amazon-SES-Mailer-PHP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Installation

Install the AWS SDK for PHP from http://aws.amazon.com/sdkforphp/

The easiest way is to download the 1.5.17.1 release from http://pear.amazonwebservices.com/ and unpack it into the proper place.

After cloning this repository:

# cd (where you cloned this repository)

Download # wget http://pear.amazonwebservices.com/get/sdk-1.5.17.1.tgz

Unpack # tar -zxvf sdk-1.5.17.1.tgz

Rename # mv sdk-1.5.17.1 AWSSDKforPHP

Clean up # rm sdk-1.5.17.1.tgz

Usage

First, make sure this library and the PEAR modules are in your include_path

<?php
require_once('AmazonSESMailer.php');

// Create a mailer class with your Amazon ID/Secret in the constructor
$mailer = new AmazonSESMailer('your id', 'your secret');

// Then use this object like you would use PHPMailer normally!
$mailer->AddAddress('[email protected]');
$mailer->SetFrom('[email protected]');
$mailer->Subject = 'Sent from Amazon SES';
$mailer->MsgHtml('This is a test');
$mailer->Send();
?>

Compatibility

Compatible with [AWS SDK for PHP 1.5 "Allegro"] 0 and newer.

License

Copyright 2011 by Geoloqi.com

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Drop-in replacement of PHPMailer which sends email via Amazon SES

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages