Download the PHP package stereo/contact-form without Composer
On this page you can find all versions of the php package stereo/contact-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package contact-form
Stereo Contact Form
Zero Config Contact Form with Logging for Wordpress
Getting Started
Install the plugin with the informations specified here
Prerequisites
Wordpress with Bedrock, jQuery loaded.
Installing
Usage
Create forms in raw html and add class "js-stereo-cf" to your form.
With this code, an email with the message content will be sent to the admin email of your Wordpress installation.
The subject will be "Formulaire de contact"
It will be logged in your Wordpress Administration, with the date, followed by the first field of your form.
Want to reset form and keet it visible after send?
Want to change the email subject to better fit your needs?
Want to change the title field in the Wordpress Administration ?
Setting the data-title to a comma seperated list of fields will concatenate each with a space between.
Want to set a category to filter the Administration list in case of multiple forms ?
The default category is Contact
Want to redirect on success ?
Set data-redirect with the redirect url
Manipulate the "TO" email address
If you want the email to go somewhere else :
Manipulate the "FROM" email address
If you want the email to get from somewhere else :
Manipulate the subject of the email
If you want to change the subject of emails :
Manipulate the content of the email
If you want to add templating to your email :
HEADERS
Default mail headers are :
If you have a "Courriel" field a replyTo will be added to your headers.
Field name can be changed
Modify mail headers array
Modify basic message on top of email
HEADERS
Default mail headers are :
If you have a "Courriel" field a replyTo will be added to your headers.
Field name can be changed
Modify mail headers array
Add callback function
Handle uploaded files
All uploaded files with name file[] are sent by email by default, but if you want to do anything else with them : If you don't want to uploads file on the server use _file[]
This hook is not triggered if there are no uploaded files.
$files = array of files
$postid
= ID of saved post ID
Handle files upload by external source
Send files in mail uploaded before the form is submitted :
Files will be removed from the server after the form is sent. Handle uploaded files if you want to keep them.
$files = array of files