mirror of
https://github.com/wneessen/go-mail.git
synced 2024-11-09 15:32:54 +01:00
fix: parsing of ReplyTo with special characters
This commit is contained in:
parent
d052289575
commit
20fe4cd751
1 changed files with 1 additions and 1 deletions
2
msg.go
2
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)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue