Skip to content

Commit

Permalink
Merge branch 'master' of github.com:livelycode/aws-lib
Browse files Browse the repository at this point in the history
  • Loading branch information
mirkokiefer committed Apr 16, 2011
2 parents 8f868ea + ddcb908 commit 511faa9
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion examples/ses.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,20 @@ ses.call("GetSendStatistics", {}, function(result) {

ses.call("ListVerifiedEmailAddresses", {}, function(result) {
console.log(JSON.stringify(result));
});
});

var recipient_address = 'test@example.com';
var sender_address = 'test@example.com';
var send_args = {
'Destination.ToAddresses.member.1': recipient_address,
'Message.Body.Text.Charset': 'UTF-8',
'Message.Body.Text.Data': 'Hello text body!',
'Message.Body.Html.Charset': 'UTF-8',
'Message.Body.Html.Data': '<b>Hello body!</b>',
'Message.Subject.Charset': 'UTF-8',
'Message.Subject.Data': 'Test subject',
'Source': sender_address
};
ses.call('SendEmail', send_args, function(result) {
console.log(result);
});

0 comments on commit 511faa9

Please sign in to comment.