Email from ASP.net

Rani

Well-known member
Joined
Nov 19, 2005
Messages
71
Programming Experience
Beginner
I have this pc of code that sends the email. I want the break html tag to work so i can display the email properly. My<br> tag just writes as is
like this "
You are invited to the chat BLABLABLA. <br>The Chat commences on 11/14/2006 at 10:00 Eastern time <br> and ends on 11/14/2006 at 13:00 Eastern time "

VB.NET:
objmm.To = ds.Tables("chat").Rows(0).Item("fname")
objmm.From = [EMAIL="Info@Blanguage.com"]Info@Blanguage.com[/EMAIL]
objmm.Subject = ds.Tables("chat").Rows(0).Item("synopsis")
objmm.Body = "You are invited to the chat BLABLABLA. <br>"
 
objmm.Body += "The Chat commences on " & ds.Tables("chat").Rows(0).Item("startdate") & " at " _
& FormatDateTime(ds.Tables("chat").Rows(0).Item("stime").ToString, DateFormat.ShortTime) & " Eastern time <br> "
 
objmm.Body += " and ends on " & ds.Tables("chat").Rows(0).Item("enddate") & " at " _
& FormatDateTime(ds.Tables("chat").Rows(0).Item("etime").ToString, DateFormat.ShortTime) & " Eastern time "
 
Last edited by a moderator:
Back
Top