You are correct. You have to assign a SMTP server to the SmtpClient, and
this server will do the MX lookup to relay the message. The SmtpClient
doesn't know how to do it by itself.
You are correct. You have to assign a SMTP server to the SmtpClient, and
this server will do the MX lookup to relay the message. The SmtpClient
doesn't know how to do it by itself.
Thank you. I'm working on a program that monitors one SMTP server and
sends, potentially, multiple alerts via at least two paths to devices
for notification of problems. Though we have two servers we can use
to relay, I like to write my programs such that if others might find a
need for it, they can use it. But they may not have a relay to depend
on, so it's good to either know the limitations or work around them.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.