Added actual email sending functionality
Added error reporting on failed email send