Git Product home page Git Product logo

philecontactform's Introduction

Contact Form Plugin for PhileCMS

Add a simple contact-form onto a page which sends the form data to an email address.

Project Home

1.1 Installation (composer)

"require": {
	"siezi/phile-contact-form": "*"
}

1.2 Installation (Download)

  • download this plugin into plugins/siezi/phileContactForm

2. Activation

After you have installed the plugin you need to activate it. Add the following line to your /config.php file:

$config['plugins']['siezi\\phileContactForm'] = ['active' => true];

3. Start

Set the email-address the contact form is send to:

$config['plugins']['siezi\\phileContactForm']['recipient-email'] = '[email protected]';

Put

(contact-form: simple)

onto the page where the contact form should be inserted.

4. Config

See config.php.

Events

plugin.siezi.contactForm.send

Triggered when the received form data is processed.

By altering the returned success parameter allows you to utilize the form data and perform your own action and/or suppress the default (send email).

philecontactform's People

Contributors

schlaefer avatar

Stargazers

 avatar

Watchers

 avatar  avatar

philecontactform's Issues

Error on send email

After plugin installation according to instructions in the readme I get the following error:

mail(): "sendmail_from" not set in php.ini or custom "From:" header missing [2]
triggered in file C:\Apache24\htdocs\dudepls\plugins\siezi\phileContactForm\Classes\Plugin.php on line 135.

Solution: check php.ini for correct email configuration

How to insert contact form?

It is not clear to me where to add the line (contact-form: simple) to insert the form.
Is it supposed to be in the .md or in the theme file? Where exactly?
Running Phile 1.6

Solution: (contact-form: simple) must be in the content of the page and {{ content }} must be declared in the theme template used by the page.

How can I implement Captcha?

Hello Developers,

so no spam is sent, I would like to use something with Captcha. How can I realize it with the contact form or it goes also with Google ReCaptcha, if that is possible.

Then I hope you are still here.

Thanks in advance.

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.