how to write an email confirmation