471,605 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

SMTPMail and server reply

Tim
Hi all,

I have a problem with SMTPMail as I want to evaluate the respone of the
server, but unfortunately I could neither on the web nor in the MSDN
find an example of it.

There is no problem with sending the mails, however, I need to find out
whether the server sent an error or said that everything was fine.

The different try... catch examples didn't help me as I a mail with a
non existing recipient wouldn't cause an exception due to its
syntactically correct address - the server would send a reply anyway
which would let me know that the recipient doesn't exist.

Any ideas anyone?

Thank you

Tim

Jan 17 '06 #1
2 1436
Me
You might want to do some research on SMTP also.. A server will probably not
send an error message back when an invalid/incorrect/unknown/etc. email
address is specified. One reason for this is the server may not know if it
is valid or not!

You may be sending an email to a SMTP server called yahoo.com and have a To
address of me @ home.com . Well.. Yahoo.com would not know if that existed
at the time that you sent your email since it is not a direct pass through
from you to the the smtp server to the destination. There is most likely a
queue of some sorts on the SMTP server and your email just gets put into it
and sent after a few seconds.

Another thing to keep in mind is Spam.. If a SMTP server acknowledged if an
address was good/bad then spammers could easily go to every SMTP server out
there and just bombard it with AAAAAAA thru ZZZZZZ and log what addresses
are good/bad and then spam them do death.

Hey.. Your not tring to do that are you? Hmmmmmmmmmm.

"Tim" <go****@supertimmy.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi all,

The different try... catch examples didn't help me as I a mail with a
non existing recipient wouldn't cause an exception due to its
syntactically correct address - the server would send a reply anyway
which would let me know that the recipient doesn't exist.

Jan 17 '06 #2
Tim
Hi again,

I forgot to mention that this is for internal use within our intranet,
so the sender and the recipients would always be in the same domain.

I'm not trying to SPAM anyone, there are enough open SMTP-relays on the
internet that I could use if I wanted to ;-)

The problem still is, that I don't get a response at all, I don't even
know whether it accepted the mail for further delivery...

No chance to get extended info? When I telnet the server and send a
mail manually, I can see the status codes the server replies with.

Best regards

Tim
You might want to do some research on SMTP also.. A server will probably not
send an error message back when an invalid/incorrect/unknown/etc. email
address is specified. One reason for this is the server may not know if it
is valid or not!

You may be sending an email to a SMTP server called yahoo.com and have a To
address of me @ home.com . Well.. Yahoo.com would not know if that existed
at the time that you sent your email since it is not a direct pass through
from you to the the smtp server to the destination. There is most likely a
queue of some sorts on the SMTP server and your email just gets put into it
and sent after a few seconds.

Another thing to keep in mind is Spam.. If a SMTP server acknowledged if an
address was good/bad then spammers could easily go to every SMTP server out
there and just bombard it with AAAAAAA thru ZZZZZZ and log what addresses
are good/bad and then spam them do death.

Hey.. Your not tring to do that are you? Hmmmmmmmmmm.

"Tim" <go****@supertimmy.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
Hi all,

The different try... catch examples didn't help me as I a mail with a
non existing recipient wouldn't cause an exception due to its
syntactically correct address - the server would send a reply anyway
which would let me know that the recipient doesn't exist.


Jan 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

8 posts views Thread by Jason | last post: by
9 posts views Thread by Kevin Spencer | last post: by
5 posts views Thread by ElanKathir | last post: by
2 posts views Thread by kmbarz | last post: by
9 posts views Thread by Russell Stevens | last post: by
1 post views Thread by Terry Olsen | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by MichaelMortimer | 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.