Click here to Skip to main content
16,007,843 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

My question is how can we get an error message in an SMTP server for Outlook in which if we are entering the wrong email id then it should give an error of Failure notice with the details as we get in gmail and yahoo.
Posted
Comments
dhawaljoshi 27-Jul-11 7:21am    
hi everybody can u plz find the answer for this...i only need to knoe the architecture how smtp server recognizes whether the reciepient email address is not correct and hence gives the fialure notic

1 solution

when you connect to an SMTP server you might use the VRFY command.
Syntax:
VRFY username
Explanation:
This command will request that the receiving SMTP server verify that a given email username is valid. The SMTP server will reply with the login name of the user. This feature can be turned off in sendmail because allowing it can be a security hole. VRFY commands can be used to probe for login names on a system. See the security section below for information about turning off this feature.


There is one big problem for you. The gross of the email servers does not allow a client to use the VRFY command because of spammers.
 
Share this answer
 
Comments
dhawaljoshi 28-Jul-11 1:00am    
thnx digimanus,

but how can i capture the bounced message which the sender will get after sending the email on the wrong email id.
Herman<T>.Instance 31-Jul-11 4:42am    
you will have to check the SMTP server and check if you get any bounced emails (mostly the word 'bounc' can befound in the title). There are several POP3 examples on this forum on how to connect and check emails woth POP3 protocol

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900