app/mailers/website_inquiry_mailer.rb in knitkit-2.1.15 vs app/mailers/website_inquiry_mailer.rb in knitkit-3.0.0

- old
+ new

@@ -1,13 +1,14 @@ class WebsiteInquiryMailer < ActionMailer::Base - def inquiry(website_inquiry, subject='') - subject = "#{website_inquiry.website.title} Inquiry" if subject.blank? + def inquiry(website_inquiry) + subject = "#{website_inquiry.website.title} Inquiry" @website_inquiry = website_inquiry - mail( :to => website_inquiry.website.configurations.first.get_item(ConfigurationItemType.find_by_internal_identifier('contact_us_email_address')).options.first.value, - :from => website_inquiry.data.dyn_email, - :subject => subject, - :content_type => 'text/plain' - ) + + mail(:to => website_inquiry.website.configurations.first.get_item(ConfigurationItemType.find_by_internal_identifier('contact_us_email_address')).options.first.value, + :from => website_inquiry.email, + :subject => subject, + :content_type => 'text/html' + ) end end