diff --git a/config/mail.go b/config/mail.go index e5f058d..3671b5c 100755 --- a/config/mail.go +++ b/config/mail.go @@ -48,7 +48,8 @@ func (m *Mail) Send(to string, subject string, body string, ccEmails ...string) fromName = os.Getenv("MAIL_FROM_NAME") } fromHeader := from - if fromName != "" { + // Solo usar "Nombre " si el nombre no es una dirección de email ni igual al from + if fromName != "" && fromName != from && !strings.Contains(fromName, "@") { fromHeader = fmt.Sprintf("%s <%s>", fromName, from) }