lib/generators/ecm/contact/install/templates/initializer.rb in ecm_contact2-2.0.0 vs lib/generators/ecm/contact/install/templates/initializer.rb in ecm_contact2-2.1.0
- old
+ new
@@ -72,6 +72,12 @@
# url to redirect to after successful contact request.
#
# default: config.after_create_url = ->(controller) { controller.url_for(action: index) }
#
config.after_create_url = ->(controller) { controller.url_for(action: index) }
+
+ # Set the sender address.
+ #
+ # default: config.sender = ->(mail_form) { %("#{mail_form.name}" <#{mail_form.email}>) }
+ #
+ config.sender = ->(mail_form) { %("#{mail_form.name}" <#{mail_form.email}>) }
end