By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,723 Members | 828 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,723 IT Pros & Developers. It's quick & easy.

How to verify account existence on SMTP server from ASP.NET ?

P: n/a
Hello,

Is there a way to verify that a particular account exists on SMTP
server before sending email to it in an ASP.NET web application?
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Darin,

AFAIK there is no any built in way in ASP.NET,
however it can be achieved by protocol level TCP communication.

Consider this example:
http://www.eggheadcafe.com/articles/20030316.asp

Look at this client server conversation:
c: ehlo myhost
s: 250 ok
c: mail from:me@my.com
s: 250 sender ok
c: rcpt to:co************@server.com
s: 250 recipient ok
c: rcpt to:wr**********@server.com
s: 550 invalid address

This way you can detect if an address is valid or invalid.
Be infored that some anti-spam configured MTAs accept
*all* recipient email addresses by default, to fight 'email harvestor'
programs, so your verification may go incorrect

http://en.wikipedia.org/wiki/Mail_transfer_agent

--
Hope this helps,
Zeeshan Mustafa, MCSD

"darin dimitrov" <da************@hotmail.com> wrote in message
news:2b**************************@posting.google.c om...
Hello,

Is there a way to verify that a particular account exists on SMTP
server before sending email to it in an ASP.NET web application?

Nov 18 '05 #2

P: n/a
> Look at this client server conversation:
c: ehlo myhost
s: 250 ok
c: mail from:me@my.com
s: 250 sender ok
c: rcpt to:co************@server.com
s: 250 recipient ok
c: rcpt to:wr**********@server.com
s: 550 invalid address

This way you can detect if an address is valid or invalid.


Zeeshan,

Thank you very much for this post. The TCP conversation you
propose will help me solving my problem.
Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.