Code to Send Email in ASP.Net
SEND EMAIL IN ASP.NET
Description
This code is use to send email via ASP.Net Page.
Generally it should be required to send the information like Login status,
update status or any updations to the user. This purpose you can use this code.
Below is the code to send mail in asp.net
Try
Dim mail As New MailMessage()
mail.[To] = "Receivers ID"
mail.From = "Sender ID"
mail.Subject = "Test Mail"
mail.BodyFormat = MailFormat.Html
mail.Body = (("<html><body>Dear ") + "Hi" & " </b> <br><br>") + " <br><br> <font color=orange>Click on the below link to be a part of DotNetSpider.</font><br><a href=http://www.dotnetspider.com?ref=jadhav_nilkumar=>Download Order</a><br><br><b> Do not Reply to this e-mail.</b><br><br>Thanks <br></body></html>"
SmtpMail.Send(mail)
Response.Write("SendMail")
Catch ex As Exception
Response.Write(ex.Message.ToString())
End Try
Thanks
Nilesh Jadhav

Please format your resource.