first version of script to send email