Skip to content

Commit

Permalink
fix email sending
Browse files Browse the repository at this point in the history
  • Loading branch information
joschahenningsen committed Apr 10, 2023
1 parent 3a27c45 commit 8a20ead
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion tools/email.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ func SendPasswordMail(to string, body string) error {

func SendMail(addr, from, subject, body string, to []string) error {
log.Printf("sending mail to %v, subject: %s body:\n%s", to, subject, body)
return nil
r := strings.NewReplacer("\r\n", "", "\r", "", "\n", "", "%0a", "", "%0d", "")

signed, err := openssl([]byte(body), "smime", "-text", "-sign", "-signer", Cfg.Mail.SMIMECert, "-inkey", Cfg.Mail.SMIMEKey)
Expand Down

0 comments on commit 8a20ead

Please sign in to comment.