C# Code: Attachment at = new Attachment (Server.MapPath(MemberPic)); //for attached file.... 'MemberPic' is file path , is string format… MailMessage Msg = new MailMessage (); string FromMail = "support@softtechsolving.com" ; string Password = "XXXXXX" ; // "XXXXXX" is sender password… Msg.From = new MailAddress (FromMail); // Recipient e-mail address.. ...