Files
bssapp/svc/internal/mailer/password_reset.go
2026-02-11 17:46:22 +03:00

19 lines
464 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package mailer
import "fmt"
func (m *GraphMailer) SendPasswordResetMail(toEmail string, resetURL string) error {
subject := "Parola Sıfırlama"
html := fmt.Sprintf(`
<p>Merhaba,</p>
<p>Parolanızı sıfırlamak için aşağıdaki bağlantıya tıklayın:</p>
<p>
<a href="%s">%s</a>
</p>
<p>Bu bağlantı <strong>30 dakika</strong> geçerlidir ve tek kullanımlıktır.</p>
`, resetURL, resetURL)
return m.SendMail(toEmail, subject, html)
}