Hello Everybody
I'm sending the mail i'm receiving blank text or nothing or sometimes i got error ...................
I'm putting my code here plz have a look and suggest me the problem exists in my code
I've already taken following controls.......given below
hidden Field= txtIDIFRAME = manojTextBox
-----------------------------------------------------------Page_Loadif(!Page.IsPostBack){cmdClick.Attributes.Add("onClick","document.Form1.txtID.value=manojTextBox.document.body.innerHTML"); }
-----------------------------------------------------------
Click Event
MailMessage mail1=new MailMessage();mail1.To="[email protected]";
mail1.From="[email protected]";
mail1.Subject="This is New Mail -2";mail1.Priority=MailPriority.High;
mail1.BodyFormat=MailFormat.Html;mail1.Body=Request.Form["txtID"];
try{SmtpMail.SmtpServer="mail.saamstesting.com"; SmtpMail.Send(mail1);lblMsg.Text="Mail Sent Successfully";lblMsg.ForeColor=Color.DarkBlue;
}catch(Exception ex){lblMsg.Text=ex.Message.ToString();lblMsg.ForeColor=Color.Red;}