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
Morcos Adel
NA
195
50.6k
Sending e-mail problem
Dec 29 2008 12:11 PM
Hi i am developing an application that sends e-mails without opening an internet explorer and i tried the following code:
S
ystem.Net.Mail.MailMessage message = new System.Net.Mail.MailMessage();
message.To.Add("
[email protected]
");
message.Subject = "Ava Kirolos";
message.From = new System.Net.Mail.MailAddress("
[email protected]
");
message.Body = "If God is for us";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("localhost");
try
{
smtp.Send(message);
}
catch (Exception caught)
{
MessageBox.Show("error");
}
but it throws an exception : Failure sending mail
can any body plz help me with that issue?????
Reply
Answers (
2
)
Recommend T-SQL book?
Saving application data?