Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Send Mail from Exchange Server
Kavitha M
Jul 15 2015 8:51 AM
546
Reply
Hi,
I want to send mail from exchange server. I want to send mail without password. I use the following code snippet :
MailMessage msg = new MailMessage();
msg.From = new MailAddress("
[email protected]
");
msg.To.Add(new MailAddress("
[email protected]
"));
msg.Subject = "Reg : Timesheet";
msg.IsBodyHtml = true;
msg.Body = "<html><body>" + strMsg + "</body></html>";
SmtpClient client = new SmtpClient("IP address of server", 25);
client.Host = "IP address of server";
client.Send(msg);
But unable to send mail.. Is there any other settings to be done for exchange server ?
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Report generation in Asp.net Web
Replace Path in Text File C#