mirror of
https://github.com/samsonjs/retrogit.git
synced 2026-03-25 09:25:49 +00:00
Merge pull request #2 from samsonjs/personalize
Personalize email senders and send errors to me
This commit is contained in:
commit
58a6498c65
2 changed files with 6 additions and 6 deletions
|
|
@ -239,8 +239,8 @@ func sendAppErrorMail(e *AppError, r *http.Request) {
|
|||
userId, _ := session.Values[sessionConfig.UserIdKey].(int64)
|
||||
|
||||
errorMessage := &mail.Message{
|
||||
Sender: "RetroGit Admin <digests@retrogit.com>",
|
||||
To: []string{"mihai.parparita@gmail.com"},
|
||||
Sender: "RetroGit for samsonjs <digests@retrogit.appspotmail.com>",
|
||||
To: []string{"sami.samhuri@gmail.com"},
|
||||
Subject: fmt.Sprintf("RetroGit Internal Error on %s", r.URL),
|
||||
Body: fmt.Sprintf(`Request URL: %s
|
||||
HTTP status code: %d
|
||||
|
|
|
|||
|
|
@ -283,8 +283,8 @@ func sendDigestErrorMail(e error, c context.Context, gitHubUserId int64) {
|
|||
}
|
||||
|
||||
errorMessage := &mail.Message{
|
||||
Sender: "RetroGit Admin <digests@retrogit.com>",
|
||||
To: []string{"mihai.parparita@gmail.com"},
|
||||
Sender: "RetroGit for samsonjs <digests@retrogit.appspotmail.com>",
|
||||
To: []string{"sami.samhuri@gmail.com"},
|
||||
Subject: fmt.Sprintf("RetroGit Digest Send Error for %d", gitHubUserId),
|
||||
Body: fmt.Sprintf("Error: %s", e),
|
||||
}
|
||||
|
|
@ -327,7 +327,7 @@ func sendDigestForAccount(account *Account, c context.Context) (bool, error) {
|
|||
}
|
||||
|
||||
digestMessage := &mail.Message{
|
||||
Sender: "RetroGit <digests@retrogit.com>",
|
||||
Sender: "RetroGit for samsonjs <digests@retrogit.appspotmail.com>",
|
||||
To: []string{emailAddress},
|
||||
Subject: "RetroGit Digest Error",
|
||||
HTMLBody: authErrorHtml.String(),
|
||||
|
|
@ -351,7 +351,7 @@ func sendDigestForAccount(account *Account, c context.Context) (bool, error) {
|
|||
}
|
||||
|
||||
digestMessage := &mail.Message{
|
||||
Sender: "RetroGit <digests@retrogit.com>",
|
||||
Sender: "RetroGit for samsonjs <digests@retrogit.appspotmail.com>",
|
||||
To: []string{emailAddress},
|
||||
Subject: "RetroGit Digest",
|
||||
HTMLBody: digestHtml.String(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue