Move sendmail to task, update notification.create calls