add SMTPClient module: connection layer, message formatter, public API, tests

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-14 05:25:03 +01:00
parent 427f197bb3
commit 54ce92e280
9 changed files with 695 additions and 1 deletions
@@ -0,0 +1,9 @@
public enum SMTPError: Error, Sendable {
case notConnected
case connectionFailed(String)
case authenticationFailed(String)
case recipientRejected(String)
case sendFailed(String)
case unexpectedResponse(code: Int, message: String)
case tlsUpgradeFailed
}