Posted on: 6/4/2013 12:03:40 PM | Views : 352

Hi,
I am working with asp.net and SQL Server..
Now, I have an email sent out with the code below;
Private Sub Authorsendemail() Using message As New MailMessage() 'Dim msgbody As String = String.Empty Dim htmlFile As String = Server.MapPath("~/EmailTemplate/NewChangeRequest.htm") Dim sreader As New StreamReader(htmlFile) Dim msgBody As New StringBuilder(sreader.ReadToEnd) sreader.Close() msgBody.Replace("<%reference%>", Trim(txtref.Text.ToString())) msgBody.Replace("<%author%>", Trim(cmbchngcrt.SelectedItem.ToString())) msgBody.Replace("<%requirement%>", Trim(txtreq.Text.ToString())) message.From = New MailAddress(findemail(cmbchngcrt.SelectedItem.ToString)) message.[To].Add(New MailAddress(findemail(cmbpeername.SelectedItem.ToStr ...

Go to the complete details ...