Skip to content

Commit 23b25e1

Browse files
committed
Update magic session emails
1 parent 07c1a83 commit 23b25e1

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

app/mailers/emails/magic_session_mailer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ def sign_in_link(user, magic_session_token)
77
end
88

99
def no_account_found(email)
10-
mail to: email, subject: "No account found"
10+
mail to: email, subject: "No account found", support_email: support_email
1111
end
1212
end

app/views/emails/magic_session_mailer/no_account_found.html.erb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<h1>Is this the right email?</h1>
22

33
<p>
4-
It looks like there isn’t an account on test tied to this email address.
4+
It looks like there isn’t a Joy of Rails account on test tied to this email address.
55
</p>
66

77
<p>
@@ -11,3 +11,7 @@ You can always try again with a different email:
1111
<p>
1212
<%= link_to "Try a different email", new_users_magic_session_token_url %>
1313
</p>
14+
15+
<p>
16+
If you think this is a mistake, please contact us at <%= mail_to support_email %>.
17+
</p>

app/views/emails/magic_session_mailer/no_account_found.text.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ Is this the right email?
22

33
It looks like there isn’t an account on test tied to this email address.
44

5-
You can always try again with a different email:
5+
You can always try again with a different email: <%= new_users_magic_session_token_url %>
66

7-
<%= link_to "Try a different email", new_users_magic_session_token_url %>
7+
If you think this is a mistake, please contact us at <%= support_email %>.

spec/mailers/previews/emails/magic_session_mailer_preview.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Preview all emails at http://localhost:3000/rails/mailers/magic_session
2-
class MagicSessionMailerPreview < ActionMailer::Preview
2+
class Emails::MagicSessionMailerPreview < ActionMailer::Preview
33
def sign_in_link
44
Emails::MagicSessionMailer.sign_in_link(FactoryBot.build(:user), "magic_session_token")
55
end

0 commit comments

Comments
 (0)