fixing aws config to send email