Code for attachement in a mail

Can you please review. Let me know if there is any issue.

Yuvaraj
yuvarajgogoi@gmail.com