472,096 Members | 2,309 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,096 software developers and data experts.

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

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
2 2203
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
> 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.

Similar topics

2 posts views Thread by Cherry | last post: by
2 posts views Thread by Mike Brearley | last post: by
2 posts views Thread by Wayne Wengert | last post: by
reply views Thread by robpimentel | last post: by
1 post views Thread by wootmaster | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.