Git Product home page Git Product logo

refinerycms-inquiries's Introduction

Inquiries

Refinery Inquiries

About

Add a simple contact form to Refinery that notifies you and the customer when an inquiry is made.

In summary you can:

  • Collect and manage inquiries
  • Specify who is notified when a new inquiry comes in
  • Customise an auto responder email that is sent to the person making the inquiry

When inquiries come in, you and the customer are generally notified. As we implemented spam filtering through the filters_spam plugin you will not get notified if an inquiry is marked as 'spam'. This feature is optional, and can be disabled in config/initializers/refinery/inquiries.rb by setting config.filter_spam = false.

Gem Installation using Bundler (The very best way)

Include the latest gem into your Refinery CMS application's Gemfile:

gem 'refinerycms-inquiries', '~> 3.0.0'

Then type the following at command line inside your Refinery CMS application's root directory:

bundle install

Installation on Refinery 2.0.0 or above.

To install the migrations, run:

rails generate refinery:inquiries
rake db:migrate

Add pages to the database and you're done:

rake db:seed

Optionally include the stylesheet.

Next, you can include the stylesheet that improves the form's display a bit, and also adds an asterisk to each required label: Name * instead of Name.

To do this, include it in your application.css manifest file and insert:

//= require refinery/inquiries/inquiries

How do I enable reCAPTCHA support?

Note: enabling this feature disables the built in spam filtering.

Just add your reCAPTCHA "Site key" in config/initializers/refinery/inquiries.rb:

config.recaptcha_site_key = "do NOT put your secret key here"

Inside config/secrets.yml, the file for application secrets in Rails applications, place the secret key:

development:
  recaptcha_secret_key: "This IS your secret key"

production:
  recaptcha_secret_key: <%= ENV["RECAPTCHA_SECRET_KEY"] %>

Note: This expects you to set your secret key via ENV in your production environment.

How do I set up email to be sent from GMail, SendGrid or other service?

Inquiries uses actionmailer under the hood so you can refer to Rails Action Mailer guide. For example to use GMail see Action Mailer Configuration for GMail guide.

How do I get Notified?

Go into your 'Inquiries' tab in the Refinery admin area and click on "Update who gets notified"

How do I Edit the Automatic Confirmation Email

Go into your 'Inquiries' tab in the Refinery admin area and click on "Edit confirmation email"

Help! How do I send emails from [email protected] instead of [email protected]?

Simply set the following in config/application.rb:

config.action_dispatch.tld_length = 2

refinerycms-inquiries's People

Contributors

ugisozols avatar parndt avatar ebeigarts avatar semaperepelitsa avatar awagener avatar bryanmtl avatar joemsak avatar bricesanchez avatar koa avatar jasherai avatar keram avatar n5ken avatar wongyouth avatar magpieuk avatar lindsve avatar djones avatar modulozero avatar duarme avatar tommoor avatar pacifists avatar robyurkowski avatar peterz avatar pedropag avatar tranquility avatar mirosr avatar krisf avatar kivanio avatar jerefrer avatar titinux avatar gernberg avatar

Watchers

Hazem Taha avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.