Setting up method for sending email confirmation