Hi!
My problem is following: I want to code a form that I want to include into my program. A user who uses my software should be able to send a mail to me with this form. I already started coding something and with some code snippets of the CodeArchiv I also get successful with sending a mail. But in my tests I already knew the MX-Server (Mail Exchange Server/SMTP-Server) of the mailadress I send the mail with. As you can imagine is there a problem if I give my program away: The MX-Server of every user will be a different and I need a method with which I can determine the MX-Server of a specific maildomain.
So for example: Mr. Testguy got y software and want to send me a mail. He fills in all fields of the form - including one field for his mailadress. Know I can get the domain of the adress. (so e.g. mail@domain.de -> "domain.de") And with this information I want to determine the MX-Server of this domain.
But how can I do this? Does anybody know? If so it would be nice if that person could share this knowledge with me.

thank you,
Christian