removed flush_transaction from save_email_message
removed flush_transaction from sendgrid events view