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
Mark Fenech
NA
82
69k
Sending Email in C#
Apr 20 2011 12:11 PM
I am trying to send email in C# using this code but smtp Exception Failure to send
this is my code
message.From = new MailAddress("
[email protected]
", "Mark Fenech");
message.To.Add(txt_emailTo.Text);
message.Subject = txt_Subject.Text;
message.Body = txt_emailBody.Text;
SmtpClient smtp = new SmtpClient();
smtp.Host = "LOCALHOST";
smtp.EnableSsl = false;
smtp.Send(message);
Reply
Answers (
12
)
Select text in a rich text box on right click
C# 2010 New Project screen missing fields