16,013,747 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by subhusingh (Top 5 by date)
subhusingh
2-Aug-13 2:58am
View
Deleted
asdafasf
subhusingh
14-Dec-12 2:11am
View
Worker Process Recycling Frequntly Which leads to Session lose All the User Got Out Of the Site I checked All the pool setings And wp setting They All are fine Some Other Site Are On Same server but working Fine.......finaaly i got this error fropm iis log..
subhusingh
11-Dec-12 5:59am
View
In Web Config........
subhusingh
11-Dec-12 5:59am
View
Sorry Dude........... Please Help If u can....
subhusingh
23-Aug-12 2:35am
View
MailMessage message = new MailMessage();
message.To.Add(new MailAddress("ToAddress"));
message.From = new MailAddress("Myid");
message.Subject = "hii";
message.Body = "hii";
// message.Attachments.Add(attachment);
SmtpClient client = new SmtpClient();
client.Port = 25;
client.Host = "mail.nic.in";
System.Net.NetworkCredential nc = new System.Net.NetworkCredential("mailid","password")
client.EnableSsl = true;
client.UseDefaultCredentials = false;
client.Credentials = nc;
client.Send(message);