I understand now what you said made sense perfectly. But what I was hoping was even if a bogus email address gets sent and recieved perfectly. Is there no way to detect the email is in fact a bogus. Cos I was hoping to trap all the bogus email address or bounced email address to an XML log.
Any ideas? I have tried TCPClient and Socket - but they are not very effective either.
Any help will be immensely appreciated....
User Profile
Collapse
-
Actually I put all the error exceptions - it nevers picks any of them including the SmtpFailedRecip ientException as well.
[code=vbnet]
catch(SmtpFaile dRecipientExcep tion sfrex)
{
//***The SMTP Server is refusing to forward the Message
}
catch (System.Net.Mai l.SmtpException exSmtp)
{
//***Communicatio n with SMTP...Leave a comment:
-
SmtpFailedRecipientException + asp.net 2.0
Hi
I have been having problems with smptclient in asp.net 2.0(C#). I found everytime I put a fake email address or any dodgy ones, it nevers calls SmtpFailedRecip ientException in the catch statement. Any ideas why please?
This is my coding:
[code=cpp]
try
{
MailAddress fromAddress = new MailAddress(Fro m, Name);
//***You can specify the host...
No activity results to display
Show More
Leave a comment: