now using a new thread to send email confirm