473,397 Members | 2,028 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

SmtpClient How to detect if its a valid email or not

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 = sa*******@askjqw.com (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...
Mar 25 '08 #1
5 2999
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

"Edgard Guilherme" <ed****@vannon.com.brwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
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 = sa*******@askjqw.com (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...

Mar 25 '08 #2
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 ?

"Jeff Dillon" <je********@hotmailremove.comescreveu na mensagem
news:u4**************@TK2MSFTNGP02.phx.gbl...
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

"Edgard Guilherme" <ed****@vannon.com.brwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
>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 = sa*******@askjqw.com (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...


Mar 25 '08 #3
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?

"Edgard Guilherme" <ed****@vannon.com.brwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
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 ?

"Jeff Dillon" <je********@hotmailremove.comescreveu na mensagem
news:u4**************@TK2MSFTNGP02.phx.gbl...
>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

"Edgard Guilherme" <ed****@vannon.com.brwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
>>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 = sa*******@askjqw.com (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...



Mar 25 '08 #4
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..
"Jeff Dillon" <je********@hotmailremove.comescreveu na mensagem
news:ul****************@TK2MSFTNGP03.phx.gbl...
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?

"Edgard Guilherme" <ed****@vannon.com.brwrote in message
news:%2******************@TK2MSFTNGP03.phx.gbl...
>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 ?

"Jeff Dillon" <je********@hotmailremove.comescreveu na mensagem
news:u4**************@TK2MSFTNGP02.phx.gbl...
>>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

"Edgard Guilherme" <ed****@vannon.com.brwrote in message
news:uZ**************@TK2MSFTNGP05.phx.gbl...
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 = sa*******@askjqw.com (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...



Mar 25 '08 #5
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)
"Edgard Guilherme" wrote:
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 = sa*******@askjqw.com (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...
Mar 25 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: alex | last post by:
hello, i am trying to use the System::Mail::Net library to have my application send some mail. i initialize all the necessary objects, such as MailAddress from and MailAddress to, and then a...
11
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running...
0
by: howardr101 | last post by:
Hi, Have hunted around on the groups and can't find anything, hence. I've tried this against 2 mail servers (mailtraq and hmailserver) and it occus with both. The problems seems to be that...
6
by: =?Utf-8?B?VG9yc3Rlbg==?= | last post by:
Hi, I have a problem sending mails with the SmtpClient class. It's strange - after I boot the pc and start the program I can send mails many times. After I close the program and start it again...
6
by: =?Utf-8?B?TMOhemFybw==?= | last post by:
Hi everyone I've a simple ASP.NET Page that send a email using smtclient. The server is a Exchange and use my credentials to autentificated. The problem is that the send mail appear in the...
2
by: Olivier MATROT | last post by:
Hello, I may be wrong, but if you are working with SmtpClient.SendAsync in ASP.NET 2.0 and it throws an exception, the thread processing the request waits indefinitely for the operation to...
7
by: Afshar | last post by:
Dear Friends, I want to send email but don't wanna use SmtpClient class, because I want more control on generated mail. Is there any good alternative? Thanks In Advance
2
by: btcoder | last post by:
Hi, my jsp page uses sun.net.smtp.SmtpClient to send email. It worked fine until the hosted location was moved to another server. Now it generates the sun.net.smtp.SmtpProtocolException and the...
5
by: BigDave | last post by:
Hi, I'm having problems with SmtpClient. I have the following set in my web.config: <configuration> <system.net> <mailSettings> <smtp> <network host="mysmtp" port="25" userName="myuser"
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.