diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-09-01 12:37:57 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-09-01 12:37:57 +0200 |
commit | ef002c79acbade33272cf9b524ce561d990df2bf (patch) | |
tree | 80874f4671e5f6cf2c9e4a1c98fdacd7b04cc2f2 /mails.go | |
parent | e48fbb7d9d4c659890b8f49210bdbcd4b8fbacb2 (diff) | |
download | mailremind-ef002c79acbade33272cf9b524ce561d990df2bf.tar.gz mailremind-ef002c79acbade33272cf9b524ce561d990df2bf.tar.bz2 mailremind-ef002c79acbade33272cf9b524ce561d990df2bf.zip |
Mails are now sent.
(Also fixed date format for mails)
Diffstat (limited to 'mails.go')
-rw-r--r-- | mails.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -42,7 +42,7 @@ func SendActivationcode(to, acCode string, uid model.DBID) bool { fmt.Fprintf(buf, "To: %s\n", to) fmt.Fprintf(buf, "From: %s\n", MailFrom) fmt.Fprintf(buf, "Subject: Activation code for your mailremind account\n") - fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC822)) + fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC1123Z)) fmt.Fprintln(buf, "") @@ -60,7 +60,7 @@ func SendPwresetLink(to, code string, uid model.DBID) bool { fmt.Fprintf(buf, "To: %s\n", to) fmt.Fprintf(buf, "From: %s\n", MailFrom) fmt.Fprintf(buf, "Subject: Password reset request for your mailremind account\n") - fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC822)) + fmt.Fprintf(buf, "Date: %s\n", time.Now().Format(time.RFC1123Z)) fmt.Fprintln(buf, "") |