Making email sending work.