diff --git a/app/controllers/asks_controller.rb b/app/controllers/asks_controller.rb index c36df99..6b4878e 100644 --- a/app/controllers/asks_controller.rb +++ b/app/controllers/asks_controller.rb @@ -190,7 +190,11 @@ class AsksController < ActionController::Base @group_mail = email_er.email_address @mail_sentdate = DateTime.now + site = Site.first + mail_from = site['site_settings']['service_email'] + email_er.email.update_attributes( + :mail_from=> mail_from, :create_user=>(current_user rescue nil), :mail_sentdate=>@mail_sentdate, :module_app=>@module_app, diff --git a/app/views/admin/asks/_index.html.erb b/app/views/admin/asks/_index.html.erb index f96b70b..6d5e714 100644 --- a/app/views/admin/asks/_index.html.erb +++ b/app/views/admin/asks/_index.html.erb @@ -28,7 +28,7 @@