SmtpClient How to detect if its a valid email or not

  • Thread starter Thread starter Edgard Guilherme
  • Start date Start date
E

Edgard Guilherme

Hello all,
b4 anything, i am using iis smtp to send the emails..


is there anyway to detect if the "To" email is a valid one ?

Like for eg. To = (e-mail address removed) (so this email of course doesnt
exist, but is there anyway to detect that ?, or if the email exist but the
inbox is full etc..)

i know that if i set the delivery method to pickup from iis and the email
fails, it ill drop it in the badmail folder, but i dont think that is nice..
is there any other way to detect any errors when the email was sent besides
checking the badmail folder ?

Thx in advance...
 
What do you plan to do if their inbox is full?

Don't most SMTP installs allow you to specify an "admin"/bounce account
where you get notified of delivery errors?

Jeff
 
well if inbox is full, i would but that email to that person on hold, and
would try again in a few hours, and if the email doesnt exist i would set
that the client would not receive any more emails. well i can set an email
to delivery on error, but isnt it possible to detect such errors at the
moment of send ?

Like

try
{
SmtpClient.Send(msg)
}
catch(Exception ex)
{
//and for eg. i could get such errors here
}

is such thing possible ?
 
How can you tell if an inbox is full, until you send a message, and get the
response?

I don't think a full inbox or an invalid email raises a runtime exception.

My suggestion is to monitor that admin/bounce account

You aren't sending spam, are you?
 
its a kind of newsletter that users choose to receive or not when
registering not spam =D,

but my boss wants this kind of feature, so i guess my only option is to
monitor the email as you said, altho it ll be a little more difficult..
 
unfortunately due to spam, this feature no longer exists. you used to a
bounce message, that the email addrss was invalid, but most mail host no
longer supply this. (the spammer would just hit mail servers with generated
names, and knock out bounces from the list).

the most common approach, is when someone signs up for mail, you send a
validation email to them, that they reply from (often at signup).


-- bruce (sqlwork.com)
 
Back
Top