diff --git a/app/models/mail_hist.rb b/app/models/mail_hist.rb index e1df93f..d08ae3a 100644 --- a/app/models/mail_hist.rb +++ b/app/models/mail_hist.rb @@ -105,7 +105,7 @@ class MailHist < ApplicationRecord mail_history.subject_send = @subject mail_history.body_send = mail.body.encoded - #mail.deliver + mail.deliver mail_history.save diff --git a/app/views/layouts/mail.html.haml b/app/views/layouts/mail.html.haml index 0e26f3d..4798a33 100755 --- a/app/views/layouts/mail.html.haml +++ b/app/views/layouts/mail.html.haml @@ -9,8 +9,8 @@ %body{:style => "background:#dadada;"} %div{:style => "width:90%;max-width:600px;margin:30px auto;background:white;"} - =link_to image_tag("https://www.mamotosurcircuit.com/entete-mail.jpg", :style => "width:100%;margin-bottom:20px;"), "https://www.mamotosurcircuit.com/", :target => "_blank" - = yield - =link_to image_tag("https://www.mamotosurcircuit.com/entete-mail.jpg", :style => "width:100%;margin-top:20px;"), "https://www.mamotosurcircuit.com/", :target => "_blank" + =link_to image_tag("https://www.mamotosurcircuit.com/entete-mail.jpg", :style => "width:100%;margin-bottom:10px;display:block;"), "https://www.mamotosurcircuit.com/", :target => "_blank" + %div{:style => "padding:0 20px;font-family:lato, arial,sans serif;"}= yield + =link_to image_tag("https://www.mamotosurcircuit.com/footer-mail.jpg", :style => "width:100%;margin-top:10px;display:block;"), "https://www.mamotosurcircuit.com/", :target => "_blank" \ No newline at end of file