mirror of
https://github.com/idanoo/SES-Email-Blaster
synced 2025-07-01 05:42:24 +00:00
Add initial code
This commit is contained in:
commit
d4fa33b233
3 changed files with 30 additions and 0 deletions
5
destination.json
Normal file
5
destination.json
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"ToAddresses": ["test@test.com"],
|
||||
"CcAddresses": [],
|
||||
"BccAddresses": []
|
||||
}
|
16
message.json
Normal file
16
message.json
Normal 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
9
send.sh
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue