Failure sending email
The last line of the code below gives an error failure sending email. Help will be appreciated
Dim message As New System.Net.Mail.MailMessage(stringFrom, stringTo)
message.Subject = "New Password"
Dim BodyString As String = ""
BodyString &= "<h3>if you have any questions call us</h3>"
BodyString &= "<p>"
BodyString &= "Please click on the link for further action<br/>"
BodyString &= "</p>"
message.Body = BodyString
message.IsBodyHtml = True
Dim smpt As New System.Net.Mail.SmtpClient("Host")
smpt.Send(message)
|