Add initial code

This commit is contained in:
idanoo 2022-11-11 10:08:44 +13:00
commit d4fa33b233
Signed by: idanoo
GPG Key ID: 387387CDBC02F132
3 changed files with 30 additions and 0 deletions

5
destination.json Normal file
View File

@ -0,0 +1,5 @@
{
"ToAddresses": ["test@test.com"],
"CcAddresses": [],
"BccAddresses": []
}

16
message.json Normal file
View File

@ -0,0 +1,16 @@
{
"Subject": {
"Data": "Test email sent using the AWS CLI",
"Charset": "UTF-8"
},
"Body": {
"Text": {
"Data": "This is the message body in text format.",
"Charset": "UTF-8"
},
"Html": {
"Data": "This message body contains HTML formatting. It can, for example, contain links like this one: <a class=\"ulink\" href=\"http://docs.aws.amazon.com/ses/latest/DeveloperGuide\" target=\"_blank\">Amazon SES Developer Guide</a>.",
"Charset": "UTF-8"
}
}
}

9
send.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
PROFILE=$1
FROM=$2
for i in {1..100}
do
aws ses --region us-west-2 --profile $PROFILE send-email --from $FROM --destination file://destination.json --message file://message.json
done