SENDING email works but software then crashes