mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-11 19:04:35 +00:00
change sender email to the default one (#371)
This commit is contained in:
@@ -569,7 +569,7 @@ func (domain *Domain) SendMLE(fromName, toAddress, toUsername, subject, textCont
|
|||||||
if domain.sengridKey == "" {
|
if domain.sengridKey == "" {
|
||||||
return fmt.Errorf("empty email api key")
|
return fmt.Errorf("empty email api key")
|
||||||
}
|
}
|
||||||
from := mail.NewEmail(fromName, "support@m3o.com")
|
from := mail.NewEmail(fromName, domain.fromEmail)
|
||||||
to := mail.NewEmail(toUsername, toAddress)
|
to := mail.NewEmail(toUsername, toAddress)
|
||||||
textContent = strings.Replace(textContent, "$micro_verification_link", fmt.Sprint("https://", path.Join(address, endpoint, token)), -1)
|
textContent = strings.Replace(textContent, "$micro_verification_link", fmt.Sprint("https://", path.Join(address, endpoint, token)), -1)
|
||||||
message := mail.NewSingleEmail(from, subject, to, textContent, "")
|
message := mail.NewSingleEmail(from, subject, to, textContent, "")
|
||||||
|
|||||||
Reference in New Issue
Block a user