fix: parsing of ReplyTo with special characters

This commit is contained in:
Christian Vette 2023-03-07 10:51:15 +01:00 committed by GitHub
parent d052289575
commit 20fe4cd751
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

2
msg.go
View file

@ -398,7 +398,7 @@ func (m *Msg) BccIgnoreInvalid(b ...string) {
// ReplyTo takes and validates a given mail address and sets it as "Reply-To" addrHeader of the Msg
func (m *Msg) ReplyTo(r string) error {
rt, err := mail.ParseAddress(m.encodeString(r))
rt, err := mail.ParseAddress(r)
if err != nil {
return fmt.Errorf("failed to parse reply-to address: %w", err)
}