Another fix for emails

This commit is contained in:
Godwin 2015-09-27 21:15:43 -07:00
parent 9e9054ca97
commit c16d539205
2 changed files with 3 additions and 2 deletions

View File

@ -69,7 +69,8 @@ class UserMailer < ActionMailer::Base
@content = content
#@banner = (@host || 'http://localhost/') + (conference ? (conference.poster.preview.url || '') : image_url('logo.png'))
if user && user.email
mail to: user.email, subject: "[#{conference ? conference.title : 'Bike!Bike!'}] #{subject}"
email = Rails.env == 'production' ? user.email : 'goodgodwin@hotmail.com'
mail to: email, subject: "[#{conference ? conference.title : 'Bike!Bike!'}] #{subject}"
end
end

View File

@ -1 +1 @@
=markdown @content
=markdown @content