0

Hello there, I've been messing around with System.Web.Mail these days and I was able to create an application that could send a mail using smtp. My problem here is, Idk how to connect my application to an exchange server and I don't have any server yet. I'm kinda noob in c# and .net. Any advice on what to do with the server? I'm kinda lost. Thanks

3
Contributors
8
Replies
9
Views
9 Years
Discussion Span
Last Post by Hitandrun
0

If your exchange server supports SMTP mail connections (which most likely it will) you would just change your app to point to your exchange server

0

Thanks for the reply LizR, I'm going to use the MS Exchange Server, how would I connect it to my application? Thanks again!

0

You said your app was working, when the exchange server is made just change the destination of the smtp mails you send to be to the exchange server

0

It works but I cant send a message. My exception handling alerts me that the sending failed.

0

Oh. well in the sending function where you point it at a server, you'd point it at your exchange server.

0

Btw, I changed my code and it now uses System.Net.Mail since System.Web.Mail is now obsolete to the .Net's above 1.1 versions. I did point it to the server.

SmtpClient varClient = new SmtpClient("server");
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.