Fixed email not being sent.