SMTPMail and server reply

  • Thread starter Thread starter Tim
  • Start date Start date
T

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
 
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.
 
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top