normanmaurer/niosmtp — pull request #24 by rocketraman (2012-03-13 04:24:16+00:00)
Title: Handle appropriate SMTP responses for non-EHLO servers

Servers that do not implement EHLO may return 500 (as per RFC 821) or 502 (RFC 1869). Handle this as "EHLO not supported" and continue if possible rather than bailing out the entire SMTP transaction.