This commit is contained in:
Nicolas Bally 2011-07-15 12:39:37 +02:00
parent 1fa250e0e4
commit 6b001c8ef7

View File

@ -1,21 +0,0 @@
class General < ActionMailer::Base
default :from => "R-Renaissance <contact@r-renaissance.fr>"
self.default_url_options = {:host => HOSTNAME}
def send_newsletter(email,newsletter )
@newsletter = newsletter
if email.kind_of?(String)
email = email
else
@registrant = email
email = email.email
end
mail(:to => email, :subject => @newsletter.subject) do |format|
format.html { render :action => "send_newsletter"}
end
end
end