How to test if an SMTP server exists from a VB.net application

  • Thread starter Thread starter Dino M. Buljubasic
  • Start date Start date
D

Dino M. Buljubasic

I need to check if an SMTP server exist (not a local one).

How can I check if an SMTP server exists from my application?

Regards,
 
dino, this is not starting to sound so good. are you planning to spam w/
your software?

connect to an smtp port and "helo" the port...if you can connect to the port
AND get a "helo" back, chances are you've found one.
 
Actually, I am building an application that does auto emailing when certain
action is done. I added an option to update settings for smtp server
address so I don't have to hardcode it. I am just thinking that I should be
able to check if the server exists once I update the smtp server info to
make sure, I can leave the settings and they will work.

How to send an HELLO? Just by smtpserver.send("Hello")? or....?

Thanks,

--
Dino Buljubasic
Software Developer
http://rivusglobal.com

PS. No, spamming is not my option.
 
search the internet for the smtp rfc...the command is "helo" (one l)...you
s/b able to find all the commands and responses online.
 
Back
Top