fixed and tested sending email through AWS

fixed another typo and also the order of the arguments to the `send_raw_email`
Tested that it works with this fix.