diff --git a/app/mailers/mailbot.rb b/app/mailers/mailbot.rb index 07249862..2f9d1f77 100644 --- a/app/mailers/mailbot.rb +++ b/app/mailers/mailbot.rb @@ -7,8 +7,9 @@ YTLF_TICKET_ID = 50 class Mailbot < ActionMailer::Base helper ConferenceHelper - default bcc: -> { SNAPCON_BCC_ADDRESS }, - template_name: -> { EMAIL_TEMPLATE }, + default bcc: SNAPCON_BCC_ADDRESS, + template_name: EMAIL_TEMPLATE, + content_type: 'text/html', to: -> { @user.email }, from: -> { @conference.contact.email } diff --git a/app/views/mailbot/ticket_confirmation_template.html.erb b/app/views/mailbot/ticket_confirmation_template.html.erb index f92284d7..97a97c60 100644 --- a/app/views/mailbot/ticket_confirmation_template.html.erb +++ b/app/views/mailbot/ticket_confirmation_template.html.erb @@ -4,11 +4,11 @@ Dear <%= @user.name %>, Thanks! You have successfully booked <%= @ticket_purchase.quantity %> <%= @ticket_purchase.ticket.title %> ticket(s) for the event <%= @conference.title %>. Your transaction id is <%= @ticket_purchase.id %>. - + Please, find the ticket(s) pdf attached. - + Best wishes, - <%= @conference.title %> Team + <%= @conference.title %> Team -<%= render partial: "layouts/mailbot_footer" %> \ No newline at end of file +<%= render partial: "layouts/mailbot_footer" %>