From what I can see, if you choose to use a server, that server must accept a message from anyone (i.e. open relay). Since this is considered a very bad practice (spammers love it), I wouldn't rely on a server being available, unless you've got control over your environment (corporate server inside a firewall or two).
I think you'll be OK not setting it:
If the SmtpServer Property is not set, mail is by default queued on a Windows 2000 system, ensuring that the calling program does not block network traffic. If the SmtpServer property is set, the mail is delivered directly to the specified server.
You just have to make sure the server you install your assemblies on has the SMTP service installed.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.