mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
Explicitly add .pdf to make it a PDF file.
Some SMTP providers would treat all files w/o suffix as `.txt`s. This patch would make it work in most cases.
This commit is contained in:
parent
80a9544279
commit
50c66e2e02
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ class Mailbot < ActionMailer::Base
|
|||
|
||||
PhysicalTicket.last(ticket_purchase.quantity).each do |physical_ticket|
|
||||
pdf = TicketPdf.new(@conference, @user, physical_ticket, @conference.ticket_layout.to_sym, "ticket_for_#{@conference.short_title}_#{physical_ticket.id}")
|
||||
attachments["ticket_for_#{@conference.short_title}_#{physical_ticket.id}"] = pdf.render
|
||||
attachments["ticket_for_#{@conference.short_title}_#{physical_ticket.id}.pdf"] = pdf.render
|
||||
end
|
||||
|
||||
mail(to: @user.email,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue