Is there a way, in C# code, to send an email without having to know the SMTP server configuration, etc on the server, or have any of that stuff set up?
The code I’m developing will be deployed to a live server, but I know nothing about the configuration, so I can’t predict what the SMTP server will be.
The best answer is if you know nothing until live, can you move all the settings into web.config? This will allow configuration up until the last minute. Below is some code to dump into your web.config file. I would question as to why you don’t have access to this information though