Skip to content

Commit f50fdcd

Browse files
authored
Merge pull request #42 from midarrlabs/feature/40-improve-onboarding-experience
Feature/40 improve onboarding experience
2 parents 96799c7 + 2516b14 commit f50fdcd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

config/config.exs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ config :media_server, MediaServer.Repo,
5454
hostname: System.get_env("DB_HOSTNAME")
5555

5656
config :media_server,
57+
app_name: "Midarr",
58+
app_url: System.get_env("APP_URL"),
59+
app_mailer_from: System.get_env("APP_MAILER_FROM"),
5760
movies_base_url: System.get_env("RADARR_BASE_URL"),
5861
movies_api_key: System.get_env("RADARR_API_KEY"),
5962
series_base_url: System.get_env("SONARR_BASE_URL"),

lib/media_server/accounts/user_notifier.ex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule MediaServer.Accounts.UserNotifier do
88
email =
99
new()
1010
|> to(recipient)
11-
|> from({"MyApp", "[email protected]"})
11+
|> from({Application.get_env(:media_server, :app_name), Application.get_env(:media_server, :app_mailer_from)})
1212
|> subject(subject)
1313
|> text_body(body)
1414

@@ -42,9 +42,9 @@ defmodule MediaServer.Accounts.UserNotifier do
4242
4343
==============================
4444
45-
Hi #{user.email},
45+
Hi #{user.name},
4646
47-
An account has been created for you.
47+
An account has been created for you at #{Application.get_env(:media_server, :app_url)}.
4848
4949
You're account details are:
5050

0 commit comments

Comments
 (0)