Generate a secret santa matchup and email the participants!
- Setup SES and remove the sandbox on your AWS account: https://docs.aws.amazon.com/ses/latest/DeveloperGuide/request-production-access.html.
- You must setup a sender domain/email that you can use via AWS SES.
- Setup AWS credential access.
- Create a config file (recommended that you try with some test email addresses first):
# first element of the list is the email address of the person.
# second element of the list is the person's "couple" if they have one, this ensures
# that couples are not matched together.
cat >./config.json <<EOF
{
"Peppa Pig": ["peppapig@hotmail.com", ""],
"George": ["georgepig@gmail.com", ""],
"Daddy Pig": ["daddypig@gmail.com", "Mummy Pig"],
"Mummy Pig": ["mummypig@yahoo.com", "Daddy Pig"],
"Suzy Sheep": ["suzy@hotmail.com", ""]
}
EOF
- Run a dryrun of the program (no emails sent or SES client created):
go run main.go -file config.json -from secretsanta@mydomain.com -dryrun
- Run the program (π¨ emails will be sent! π¨):
go run main.go -file config.json -from secretsanta@mydomain.com