Hi,
I am got the following code to send a email to the customers visit our site.
But it is not working giving a error as " System.Web.HttpException: The server rejected one or more recipient addresses".
Please help me for the betterment of the code asasp.
Dim objEmail As New MailMessage
objEmail.From = "
[email protected]"
objEmail.To = "
[email protected]"
objEmail.Cc = "
[email protected]"
objEmail.Subject = "On Line Booking"
objEmail.Body = str
objEmail.Priority = MailPriority.High
Try
SmtpMail.SmtpServer = "mail.smtpserverexample.com"
SmtpMail.Send(objEmail)
lbl_statusmessage.Text = "Thank you for submitting your interest!<br />Our representative will contact you shortly."
Catch exc As Exception
Response.Write("Mail Sending failure: " + exc.ToString())
End Try
Thanks
Maheshwaran