Author: Chit Min Maung | Posted on: 5/6/2010 10:57:27 PM | Views : 467

Hi,
Now I'm developing the autogenerated mail program in my web application system.
And there is my code :

private void SMTPMail() { if (ddlRFINo.SelectedIndex <= 0) { WebMsgBox.Show("You need to select first JobNo & RFINo!"); } else { string sRNo = ddlRFINo.SelectedItem.Text.ToString().Trim(); string sLogonID = HttpContext.Current.Request.ServerVariables["LOGON_USER"].ToString(); sLogonID = sLogonID.Substring(sLogonID.LastIndexOf(@"\") + 1); SqlDataAdapter adpUser = new SqlDataAdapter("Select Email from Employee where LogonID='" + sLogonID + "'", connCHR); DataTable dtUser = new DataTable(); adpUser.Fill(dtUser); DataTable d ...

Go to the complete details ...