mirror of
https://github.com/emersion/go-smtp
synced 2026-07-04 14:48:37 +00:00
v0.24.0
Client.SendMail() already calls validateLine() via Client.Mail() and Client.Rcpt(), so there is no need to have these checks in sendMail(). Having these checks don't hurt as such, but looking at just the sendMail() function it's not obvious whether these checks are needed if you want to implement your own SendMail()-type function. With this change, you can copy/paste sendMail(), add the smtp. package selector, and modify as needed. Also removes a superfluous nil check as a bonus.
go-smtp
An ESMTP client and server library written in Go.
Features
- ESMTP client & server implementing RFC 5321
- Support for additional SMTP extensions such as AUTH and PIPELINING
- UTF-8 support for subject and message
- LMTP support
Relationship with net/smtp
The Go standard library provides a SMTP client implementation in net/smtp.
However net/smtp is frozen: it's not getting any new features. go-smtp
provides a server implementation and a number of client improvements.
Licence
MIT
Languages
Go
100%