An alternative contact form solution for ExpressionEngine using the Mailgun API and reCAPTCHA v2. Include the tag with required parameters in any template to generate a form.
If you wanna edit the form that spits out in the front-end, you'll have to edit pi.eemgforms.php
manually. I'll have a better system in place for this (and a simplified installation process) before the 1.0 release.
- ExpressionEngine 5 (might work in versions 3/4)
- Composer
- Bootstrap (Optional. You can define your own CSS classes, but the ones included with the default form are designed to work with Bootstrap out of the box)
Go to the root project directory of your ExpressionEngine in Bash and run the following commands:
mkdir system/user/addons/eemgforms
cd system/user/addons/eemgforms
composer install
Then install the Mailgun Forms add-on via the ExpressionEngine Add-On Manager.
This tag will generate the form in your templates.
Simply fill in the tag with your Mailgun API credentials, reCAPTCHA v2 keys, and recipient information.
{exp:eemgforms domain="mailgun.domain.com" segment="urisegment" key="apikey" user="postmaster@mailgun.domain.com" to="recipient@domain.com" subject="Contact Form Submission" rc_site="publickey" rc_secret="privatekey"}
The address of the domain configured in Mailgun.
Your Mailgun API key.
The default SMTP login of the domain configured in Mailgun
The recipient address form submissions get sent to.
The last URI segment of the page serving the form.
The subject line form submissions have when they arrive at the recipient address. Defaults to Contact Form Submission
if left undefined.
Your reCAPTCHA v2 public or site key.
Your reCAPTCHA v2 private or secret key.
- Initial release.