cgi script for amazon aws sns http notifications that sends custom emails