Merge pull request #118 from cvette/main

fix: parsing of ReplyTo with special characters
This commit is contained in:
Winni Neessen 2023-03-07 11:01:50 +01:00 committed by GitHub
commit 84bc888344
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)
}