fix mail template use erb for plain
This commit is contained in:
parent
66bfa99ca3
commit
9752543412
@ -1,4 +1,4 @@
|
||||
="Hello #{@data['name']}"
|
||||
Hello <%= @data['name'] %>
|
||||
|
||||
This is an automated message confirming that we have receievd your request
|
||||
|
||||
@ -13,5 +13,6 @@ Your friendly Feenix Bot
|
||||
Data received
|
||||
-------------
|
||||
|
||||
- @data.each do |name , value|
|
||||
= "#{name}: #{value}"
|
||||
<%- @data.each do |name , value| %>
|
||||
<%= name %> : <%= value %>
|
||||
<%- end %>
|
@ -5,7 +5,7 @@ class FormHandler
|
||||
data.each do |name , value|
|
||||
puts "#{name}: #{value}"
|
||||
end
|
||||
FormMailer.received(data).deliver_later
|
||||
FormMailer.received(data).deliver_now
|
||||
end
|
||||
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user