How to mail the scraping data through SMTP

i would like to send attachment with scraping data