Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
3
Reply
Simple Internet mail Configuration.
Mag
Jan 31 2011 2:46 AM
2.1k
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
3
)
Next Recommended Forum
How do you match the value from database to user control using VB.NET
hOW TO EXPORT THREE REPORTS AS A SINGLE rtf FILE