added confirmation mail fn