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

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,
 
S

steve

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.
 
D

Dino M. Buljubasic

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.
 
S

steve

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.
 
D

Dino M. Buljubasic

I found that, but I can not call "helo" from VB.net. That is the problem
 

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

Top