Added email sending.