string sBody = TxtUserName.Text.Trim() + TxtPassword.Text.Trim();
string path = Server.MapPath(@"Images/book-cover.jpg");
MailMessage msg = new MailMessage();
MailAttachment attachment = new MailAttachment(path);
msg.Attachments.Add(attachment);
msg.From = "dansingteam@dansingwater.com";
msg.To = txtEmailID.Text.Trim();
msg.Subject = "DansingWater Registration Detail";
msg.Body = ": Welcome to Dansing Water, Your Credentials are as follows :" + "\r\n" + "User Name :" + TxtUserName.Text.Trim() + "\r\n" + "password : " + TxtPassword.Text.Trim() + "\r\n";
SmtpMail.SmtpServer = "smtp.net4india.com";
SmtpMail.Send(msg);