Another fix for emails
This commit is contained in:
parent
c16d539205
commit
06d216421e
@ -67,9 +67,9 @@ class UserMailer < ActionMailer::Base
|
|||||||
def broadcast(host, subject, content, user, conference)
|
def broadcast(host, subject, content, user, conference)
|
||||||
@host = host
|
@host = host
|
||||||
@content = content
|
@content = content
|
||||||
#@banner = (@host || 'http://localhost/') + (conference ? (conference.poster.preview.url || '') : image_url('logo.png'))
|
@banner = nil#(@host || 'http://localhost/') + (conference ? (conference.poster.preview.url || '') : image_url('logo.png'))
|
||||||
if user && user.email
|
if user && user.email
|
||||||
email = Rails.env == 'production' ? user.email : 'goodgodwin@hotmail.com'
|
email = user.email
|
||||||
mail to: email, subject: "[#{conference ? conference.title : 'Bike!Bike!'}] #{subject}"
|
mail to: email, subject: "[#{conference ? conference.title : 'Bike!Bike!'}] #{subject}"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user