System.Net.Mail.MailMessage m1 = new System.Net.Mail.MailMessage();
m1.From = "manpreet@gmail.com"
m1.Subject = "Test mail ";
m1.Body = str.ToString();
m1.IsBodyHtml = true;
m1.To.Add("jasdeep@gmail.com");
m1.CC.Add("jasdeep123@gmail.com");
m1.Attachments.Add(new Attachment(strserverpath + @"\pdf\" + PdfFileName));
smtp.Send(m1);
m1.From = "manpreet@gmail.com"
m1.Subject = "Test mail ";
m1.Body = str.ToString();
m1.IsBodyHtml = true;
m1.To.Add("jasdeep@gmail.com");
m1.CC.Add("jasdeep123@gmail.com");
m1.Attachments.Add(new Attachment(strserverpath + @"\pdf\" + PdfFileName));
smtp.Send(m1);
Comments