fixed the context error for send_email