mirror of
https://github.com/coder/coder.git
synced 2025-07-15 22:20:27 +00:00
feat(coderd): add company logo when available for email notifications (#14935)
This PR aims to close #14253 We keep the default behavior using the Coder logo if there's no logo set. Otherwise we want to use the logo based on the URL set in appearance. --------- Co-authored-by: defelmnq <yvincent@coder.com>
This commit is contained in:
@ -442,11 +442,7 @@ func TestSMTP(t *testing.T) {
|
||||
require.NoError(t, hp.Set(listen.Addr().String()))
|
||||
tc.cfg.Smarthost = hp
|
||||
|
||||
helpers := map[string]any{
|
||||
"base_url": func() string { return "http://test.com" },
|
||||
"current_year": func() string { return "2024" },
|
||||
}
|
||||
handler := dispatch.NewSMTPHandler(tc.cfg, helpers, logger.Named("smtp"))
|
||||
handler := dispatch.NewSMTPHandler(tc.cfg, logger.Named("smtp"))
|
||||
|
||||
// Start mock SMTP server in the background.
|
||||
var wg sync.WaitGroup
|
||||
@ -484,7 +480,7 @@ func TestSMTP(t *testing.T) {
|
||||
Labels: make(map[string]string),
|
||||
}
|
||||
|
||||
dispatchFn, err := handler.Dispatcher(payload, subject, body)
|
||||
dispatchFn, err := handler.Dispatcher(payload, subject, body, helpers())
|
||||
require.NoError(t, err)
|
||||
|
||||
msgID := uuid.New()
|
||||
|
Reference in New Issue
Block a user