Hello Abdur,
Helpful article on using Gmail to send mail.
Added the following "using" statements to my code:
System.Net for NetworkCredential
System.Net.Mail for MailMessage and Attachment
System.IO for adding a OpenFileDialog
Also modified my code to send with
newmsg.SendAsync();
Regards,
David