Add email settings
Fix email send
Log the status of sent email