Skip to content

Commit

Permalink
Add event registration url to email
Browse files Browse the repository at this point in the history
  • Loading branch information
chvp committed Apr 19, 2023
1 parent 371b984 commit e393438
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions app/views/registration_mailer/confirm_registration.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@

<p><strong>Gelieve ten laatste 3 dagen voor het evenement te betalen.</strong> Indien dit niet meer lukt, gelieve ons te contacteren via <%= mail_to @registration.event.contact_email, @registration.event.contact_email %> om een andere betalingswijze af te spreken. Eens we uw betaling verwerkt hebben, zal u uw ticket via e-mail ontvangen.</p>

<p>U kan deze informatie ook altijd herbekijken op <a href="<%= event_registration_url(@registration.event, @registration.token) %>">deze pagina</a>.

<p>Mocht er zich eender welk probleem voordoen, kan u ons altijd via e-mail contacteren: <%= mail_to @registration.event.contact_email, @registration.event.contact_email %></p>

<p>Met vriendelijke groet,<br /><%= @registration.event.club.name %></p>
Expand All @@ -31,6 +33,8 @@

<p><strong>Please pay at least 3 days before the event.</strong> If this is no longer possible, please contact us via <%= mail_to @registration.event.contact_email, @registration.event.contact_email %> to agree upon a different payment method. You will receive your ticket by mail once we processed your payment.</p>

<p>You can always view this information on <a href="<%= event_registration_url(@registration.event, @registration.token) %>">this page</a>.

<p>If you have any problems, you can contact us via mail: <%= mail_to @registration.event.contact_email, @registration.event.contact_email %></p>

<p>Kind regards,<br /><%= @registration.event.club.name %></p>
Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
config.action_mailer.perform_deliveries = true

# Set base URL because emails don't have the Host header context
config.action_mailer.default_url_options = { :host => 'https://localhost:3000' }
config.action_mailer.default_url_options = { :host => 'http://localhost:3000' }

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down
3 changes: 3 additions & 0 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@

config.action_mailer.perform_caching = false

# Set base URL because emails don't have the Host header context
config.action_mailer.default_url_options = { :host => 'http://example.com' }

# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
Expand Down

0 comments on commit e393438

Please sign in to comment.