From 20fe4cd751367d7e23988a2b2510c94ec381e81b Mon Sep 17 00:00:00 2001 From: Christian Vette <6884391+cvette@users.noreply.github.com> Date: Tue, 7 Mar 2023 10:51:15 +0100 Subject: [PATCH] fix: parsing of ReplyTo with special characters --- msg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msg.go b/msg.go index 27334b5..ff490d6 100644 --- a/msg.go +++ b/msg.go @@ -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) }