Created
February 12, 2015 01:53
-
-
Save nagataka/56e27a8a81d6192fd0bf to your computer and use it in GitHub Desktop.
send message by AWS SES using AWS SDK for PHP 1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/php | |
| <?php | |
| require_once("sdk-1.6.2/sdk.class.php"); | |
| $ses = new AmazonSES(); | |
| $response = $ses->send_email( | |
| 'from_addr@example.co.jp', // Source (aka From) | |
| array('ToAddresses' => array( // Destination (aka To) | |
| 'to_adde@test.com' | |
| )), | |
| array( // Message (short form) | |
| 'Subject.Data' => 'Email Test ' . time(), | |
| 'Body.Text.Data' => 'This is a simple test message ' . time() | |
| ) | |
| ); | |
| ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment