Compare commits
No commits in common. "5e954ca751c08394713282e558fe041ae8ac96c3" and "a05407eba01a80e8a2ec294a110232eb61223ce2" have entirely different histories.
5e954ca751
...
a05407eba0
2 changed files with 5 additions and 2 deletions
|
@ -165,13 +165,12 @@ func (r *RequestRepo) sendConfirmationMail(request models.Request) error {
|
||||||
message.SetBodyString(mail.TypeTextPlain, messageText.String())
|
message.SetBodyString(mail.TypeTextPlain, messageText.String())
|
||||||
|
|
||||||
var options []mail.Option
|
var options []mail.Option
|
||||||
options = append(options, mail.WithPort(r.config.Mailer.SmtpPort))
|
|
||||||
if r.config.Mailer.SmtpUseAuth {
|
if r.config.Mailer.SmtpUseAuth {
|
||||||
options = append(options, mail.WithSMTPAuth(mail.SMTPAuthPlain))
|
options = append(options, mail.WithSMTPAuth(mail.SMTPAuthPlain))
|
||||||
options = append(options, mail.WithUsername(r.config.Mailer.SmtpIdentity))
|
options = append(options, mail.WithUsername(r.config.Mailer.SmtpIdentity))
|
||||||
options = append(options, mail.WithPassword(r.config.Mailer.SmtpPassword))
|
options = append(options, mail.WithPassword(r.config.Mailer.SmtpPassword))
|
||||||
}
|
}
|
||||||
client, err := mail.NewClient(r.config.Mailer.SmtpHost, options...)
|
client, err := mail.NewClient(r.config.Mailer.SmtpHost, mail.WithPort(r.config.Mailer.SmtpPort))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println(err.Error())
|
log.Println(err.Error())
|
||||||
return err
|
return err
|
||||||
|
|
|
@ -6,5 +6,9 @@
|
||||||
Du solltest eine Mail mit einem Aktivierungslink erhalten haben.
|
Du solltest eine Mail mit einem Aktivierungslink erhalten haben.
|
||||||
Klicke auf diesen, um die Sprechstunde öffentlich anzuzeigen.
|
Klicke auf diesen, um die Sprechstunde öffentlich anzuzeigen.
|
||||||
</div>
|
</div>
|
||||||
|
<div class="col-md-8 offset-md-2 alert alert-warning">
|
||||||
|
Wir haben vermehrt erfahren, dass Mails, die an GMX oder Web.de weitergeleitet werden, nicht zugestellt werden.
|
||||||
|
Falls du davon betroffen bist, melde dich bei <a href="mailto:sprechstundentool@mathebau.de">sprechstundentool@mathebau.de</a>.
|
||||||
|
</div>
|
||||||
|
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue