login about faq

I've had cases were SendEmail returns success, but the recipient never receives the email.

asked May 07 '15 at 06:40

chilkat's gravatar image

chilkat ♦♦

Your program connects to an SMTP server to send email. It is the SMTP client.
This is what the SMTP conversation looks like (S = server, C = client)

  S: 220 foo.com Simple Mail Transfer Service Ready
  C: EHLO bar.com
  S: 250-foo.com greets bar.com
  S: 250-8BITMIME
  S: 250-SIZE
  S: 250-DSN
  S: 250 HELP
  C: MAIL FROM:<Smith@bar.com>
  S: 250 OK
  C: RCPT TO:<Jones@foo.com>
  S: 250 OK
  S: 354 Start mail input; end with <crlf>.<crlf>
  C: Blah blah blah...
  C: ...etc. etc. etc.
  C: .
  S: 250 OK
  S: 221 foo.com Service closing transmission channel
The "handoff" to the SMTP server is completed at the final "250 OK". At this point, the SMTP client-to-server transaction has been completed, and delivery is now in the hands of the SMTP server. Any problems occuring after the handoff are unknown to the SMTP client.

One common issue is that some SMTP servers will not actually initiate delivery until the connection is closed. Chilkat will by default keep the connection open to the SMTP server so that a subsequent call to SendEmail may use the already open and authenticated connection. An application may call mailman.CloseSmtpConnection to explicitly send the QUIT command, receive its response, and then cleanly disconnect from the SMTP server.


answered May 07 '15 at 06:49

chilkat's gravatar image

chilkat ♦♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: May 07 '15 at 06:40

Seen: 2,619 times

Last updated: May 07 '15 at 06:49

powered by OSQA