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 = "" + strMsg + "";
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 ?
Rajeesh MenothPosted Jul 15, 2015, 10:00 AM