TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Mag
NA
19k
0
Simple Internet mail Configuration.
Jan 31 2011 2:46 AM
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
Reply
Answers (
3
)
Split
[WinFORM] How to Record all incoming/outgoing communication from pc through any network cable