fix syntax
add email sending