Fixed email functionality.