Querying what kind of mail server is active on a machine
-
Hello all. Does anybody know how to query the available mail servers active on a mchine prior to calling the send method on the MailMessage class. i.e. There could be a SMTP or exchange server on the network. Cheers.
-
Hello all. Does anybody know how to query the available mail servers active on a mchine prior to calling the send method on the MailMessage class. i.e. There could be a SMTP or exchange server on the network. Cheers.
Matt Fishbeck wrote:
. There could be a SMTP or exchange server on the network.
SMTP is a protocol. Exchange is a product. Exchange can handle SMTP (if enabled).
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
Matt Fishbeck wrote:
. There could be a SMTP or exchange server on the network.
SMTP is a protocol. Exchange is a product. Exchange can handle SMTP (if enabled).
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)Is there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?
-
Is there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?
If not supplied, the SmtpClient class will lookup the info in the app.config file. If not present there, it will use the defaults as defined in the machine.config file.
xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008) -
Is there a call to query the STMP server to be used as a parameter to be passed into the constructor of SmtpClient?
-
I just noticed the
ServicePoint
property, that could be helpful, never used it :)xacc.ide - now with TabsToSpaces support
IronScheme - 1.0 alpha 4a out now (29 May 2008)We are using an exchange server. Do not know if it supports STMP but without supplying a server it throw an exception:-( Will see what I can find out