sending email functionality not working on server, but works in local machine.

I created Send Email functionality as suggested in below ... 

 string txtEMailFrom = "";
 SmtpClient clientServer = new SmtpClient("");
 MailMessage msg = new MailMessage();
 msg.From = new MailAddress(txtEMailFrom);
 msg.To.Add(new MailAddress(ClientEmail));
 msg.Subject = SubjectLine;
 msg.IsBodyHtml = true;
 msg.Body = Message;
 clientServer.UseDefaultCredentials = true;                

It works fine when running in VS2012 or deploying in local machine IIS. However when deployed to test server (WIN server 2008 R2)  getting an exception "Unable to connect to remote server"

Any ideas ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Gautham JanardhanCommented:
can u post ur service method.. most likely u are getting an error in ur service method. if you are not doing any other sort of error handling.. wrap this piece of code in a try catch and try to log/send the error.
anbu210Author Commented:
Never mind, Looks like port issue on the server. Server Team working on enabling Port 25.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Tom KnowltonWeb developerCommented:
No comment has been added to this question in more than 21 days, so it is now classified as abandoned.

I have recommended this question be closed as follows:

Accept: anbu210 (https:#a40229589)

If you feel this question should be closed differently, post an objection and the moderators will review all objections and close it as they feel fit. If no one objects, this question will be closed automatically the way described above.

Experts-Exchange Cleanup Volunteer
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.