I test a code to Send email async. I've coppied from Asp.net . I have Async="True" but it dasn't work. I have
Error occured, info=Failure sending mail.
Please help
Imports System.Net.Mail
Partial Class _Default
Inherits System.Web.UI.Page
Protected Sub btnSend_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnSend.Click
SendMail()
End Sub
Private Sub SendMail()
Dim mailMessage As New System.Net.Mail.MailMessage
mailMessage.From = New MailAddress("sales@proficientwindowcleaning.com")
mailMessage.To.Add(New MailAddress("sales@proficientwindowcleaning.com"))
mailMessage.Subject = txtSubject.Text.Trim()
mailMessage.Body = txtBody.Text.Trim()
Dim smtpClient As New SmtpC ...
Go to the complete details ...