fix mail template use erb for plain

This commit is contained in:
Torsten 2023-02-09 13:09:31 +02:00
parent 66bfa99ca3
commit 9752543412
2 changed files with 5 additions and 4 deletions

View File

@ -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 %>

View File

@ -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