add send email function -cookie