send mail and attach a text file or a img