Fix create controller to send email in other thread.