send email using a gui dialog