L
Leon
Is the following a cool way to write to write a pre-built html formatted
email message to be call from within a class to a weform on button-click
event?
Please voice your opion. Thanks!
Protected Sub SendEmail(ByVal Message As String)
Dim swHtmlBody As New StringWriter
Dim swTextWriter As New HtmlTextWriter(swHtmlBody)
With swTextWriter
..RenderBeginTag("html")
..RenderBeginTag("head")
..RenderBeginTag("title")
..WriteLine("Your Lost Password")
..RenderEndTag()
..RenderEndTag()
..RenderBeginTag("body")
..WriteLine("Hi ", FirstName, " ", LastName, ",")
..WriteLine()
..Write("Your Registered:")
..WriteLine("Email -", EmailAddress)
..WriteLine("Password -", Password)
..RenderEndTag()
..RenderEndTag()
End With
End Sub
email message to be call from within a class to a weform on button-click
event?
Please voice your opion. Thanks!
Protected Sub SendEmail(ByVal Message As String)
Dim swHtmlBody As New StringWriter
Dim swTextWriter As New HtmlTextWriter(swHtmlBody)
With swTextWriter
..RenderBeginTag("html")
..RenderBeginTag("head")
..RenderBeginTag("title")
..WriteLine("Your Lost Password")
..RenderEndTag()
..RenderEndTag()
..RenderBeginTag("body")
..WriteLine("Hi ", FirstName, " ", LastName, ",")
..WriteLine()
..Write("Your Registered:")
..WriteLine("Email -", EmailAddress)
..WriteLine("Password -", Password)
..RenderEndTag()
..RenderEndTag()
End With
End Sub