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
Zuber Kazi
NA
36
34.3k
send email using c# in windows application
Apr 16 2012 8:21 AM
Hello Everyone,
I want to send email using c# in windows application.
i used snippet as following
System.Net.Mail.MailMessage mes = new System.Net.Mail.MailMessage();
mes.To.Add("
[email protected]
");
mes.Subject = "none";
mes.From = new System.Net.Mail.MailAddress("
[email protected]
");
mes.Body = "test";
System.Net.Mail.SmtpClient smtp = new System.Net.Mail.SmtpClient("smtp.gmail.com");
smtp.Port = 578;
smtp.Send(mes);
but it throws an smtp error
Please help me out.
If u have other snippet then please post it.
Regards,
Zuber Isak Kazi
Reply
Answers (
4
)
XML
Get the user.config of one project in another project with same name of exe.