Hello,
I am trying to send email using gmail smtp. I used to bind the grid view to mail body using GridViewToHtml(GridView1) this method. I defined the method in same source file as
Private Function GridViewToHtml(ByVal gv As GridView) As String
Dim sb As New StringBuilder()
Dim sw As New StringWriter(sb)
Dim hw As New HtmlTextWriter(sw)
gv.RenderControl(hw)
Return sb.ToString()
End Function
But the problem is, mail working properly with body text but gridview is not displaying in mail body. How should i resolve this problem.