How to obtain server info?

  • Thread starter Thread starter Mark F.
  • Start date Start date
M

Mark F.

How can I get the user's ISP SMTP sever name or IP address? This would be
for a user feedback form in Windows Form applications. Checking the
registry, or using CDO is not a good option with every machine.

Thanks,
Mark
 
hi it's not clear for me that what do u want exactly?

do u want to find Ip addres Of an smtp server?


do u familier whit dns ?


in dns server and in Record Mx of each dns server you can fine name
of
smtp server


i dont know it is your answer or not but i glad to help ypu if you
want.


mehdi
 
Mehdi said:
hi it's not clear for me that what do u want exactly?

do u want to find Ip addres Of an smtp server?


do u familier whit dns ?


in dns server and in Record Mx of each dns server you can fine name
of
smtp server


i dont know it is your answer or not but i glad to help ypu if you
want.


mehdi

My program (Windows Form Application NOT a web page) needs to send
information to my email from the user's machine. In order to do that using
the System.Net namspace methods, I have to set the SMTP Server name or IP
address in the 'Host' property. For example.

SmtpClient client = new SmtpClient();
client.Host = SMTPServerName; // server name or ip, as string
client.Port = 25;
client.Send(msg);

I want to know how to get the user's ISP SMTP server. Obtaining it from the
registry is not reliable on every machine.

Mark
 
Mark said:
How can I get the user's ISP SMTP sever name or IP address? This would be
for a user feedback form in Windows Form applications. Checking the
registry, or using CDO is not a good option with every machine.

Perhaps a different approach would be better and easier: instead of
trying to send a mail use a HttpRequest to post the Userfeedback to a
webserver of yours.

Or try to open a new mail message using the user's configured default
mail program and let the user send it. Something like start new
Process("mailto:[email protected]?subject=feedback");

Ben
 
Mark F. said:
My program (Windows Form Application NOT a web page) needs to send
information to my email from the user's machine. In order to do that using
the System.Net namspace methods, I have to set the SMTP Server name or IP
address in the 'Host' property. For example.

SmtpClient client = new SmtpClient();
client.Host = SMTPServerName; // server name or ip, as string
client.Port = 25;
client.Send(msg);

I want to know how to get the user's ISP SMTP server. Obtaining it from the
registry is not reliable on every machine.

Put a SMTP server on YOUR machine, and then use your SMTP server...
 
Mark,

Beside that this is in my opinion a kind of hacking method, will it probably
fail. Most users have an firewall or viruschecker which has disabled port
25, unabeling what you want even if you would optain information of your
user intern computer.

Beside that SMTP mail is not always (maybe better to say seldom) enabled on
users not known with this.

The open mail approach JB is showing you is in my opinion a better approach.
That mail is seen by the user, so he/she can decide to sent it or not.

Cor
 

Ask a Question

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.

Ask a Question

Back
Top