Skip to content

Commit

Permalink
update email, subject, and sender
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Sep 18, 2024
1 parent 357b697 commit f6a89b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/mailers/application_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
class ApplicationMailer < ActionMailer::Base
helper :application, :sessions

default from: 'noreply@openstax.org'
default from: 'OpenStax Accounts <noreply@openstax.org>'

def mail(headers={}, &block)
headers[:subject] = "[OpenStax] #{headers[:subject]}"
Expand Down
2 changes: 1 addition & 1 deletion app/mailers/newflow_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def signup_email_confirmation(email_address:)

mail to: @email_value,
subject: if @should_show_pin
"Use PIN #{@confirmation_pin} to confirm your email address"
"Your OpenStax account PIN has arrived: #{@confirmation_pin}"
else
'Confirm your email address'
end
Expand Down
11 changes: 8 additions & 3 deletions app/views/newflow_mailer/signup_email_confirmation.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<tr>
<td style="font-family: Arial, Helvetica, sans-serif;padding-top: 30px;padding-right: 30px;padding-bottom: 10px;padding-left: 30px;">
<h1 style="color: rgb(17, 17, 17); font-family: Helvetica, Arial, Helvetica, sans-serif; font-weight: bold; margin: 0px; text-align: center;">
Confirm your email address
Welcome to OpenStax!
</h1>
</td>
</tr>
Expand All @@ -88,7 +88,11 @@
<tr>
<td style="font-family: Arial, Helvetica, sans-serif;padding-top: 10px;padding-right: 30px;padding-bottom: 20px;padding-left: 30px;">
<p style="color: rgb(0, 0, 0); font-family: Helvetica, Arial, Helvetica, sans-serif; font-weight: normal; margin: 0px; line-height: 2;">
<div style="text-align: center">Verify your email by clicking the button below or use your pin: <b><%= @confirmation_pin %></b></div>
<div style="text-align: center">
<h3>Please confirm <%= @email_value %> is your email.</h3>
<hr>
Verify your email by clicking the button below or use your pin: <b><%= @confirmation_pin %></b>
</div>
</p>
</td>
</tr>
Expand Down Expand Up @@ -122,7 +126,8 @@
<tr>
<td style="font-family: Arial, Helvetica, sans-serif;padding-top: 30px;padding-right: 50px;padding-bottom: 50px;padding-left: 50px;">
<div style="text-align: center; line-height: 2">
If you need any assistance, please reply to this email at&nbsp;<a href="mailto:support@openstax.org">support@openstax.org</a>.
If you need any assistance, please reply to this email at&nbsp;<a href="mailto:support@openstax.org">support@openstax.org</a>.<br>
<small>If you did not signup for an OpenStax Account with the email <%= @email_value %>, please disregard this message.</small>
</div>
</td>
</tr>
Expand Down

0 comments on commit f6a89b4

Please sign in to comment.