Plugin screenshot thumbnail 1/1

Contact Form Tuner

This plugin extends functionality offered by the official Contact Form plugin by allowing you to:

  • Control Cc recipients
  • Control Bcc recipients
  • Control Reply-To recipients
  • Force plain text only emails
  • Use a custom template for the plain text email body
  • Use a custom template for the HTML email body

Usage

All settings for this plugin can be configured from the Control Panel under Settings → Contact Form Tuner. You can also configure the plugin programmatically by creating a contact-form-tuner.php file in your config folder. This file supports Craft's standard multi-environment configurations, and any values defined here will override those set via the Control Panel.

Sample

Here is a sample config file along with a list of all possible settings and their default values:

<?php

return [
  'ccEmail'       => '',      // e.g. 'cc@mail.com' or ['one@email.com', 'two@gmail.com']
  'ccName'        => '',
  'bccEmail'      => '',
    
  'hideReplyTo'   => false,
  'replyToEmail'  => '',      // leaving this empty preserves the reply-to set by Contact Form
  'replyToName'   => '',
    
  'textOnly'      => false,   // enabling this forces the email to be sent in plain text only
    
  'textTemplate'  => '',      // templates have access to submitted values
  'htmlTemplate'  => '',      // such as `fromName`, `fromEmail`, `subject` and `message`
];
Installation Instructions

To install this plugin, copy the command above to your terminal.

Active Installs
61
Version
1.1.0
License
MIT
Compatibility
Craft 3, Craft 4
Last release
July 18, 2022
Activity (30 days)
0
Closed Issues
0
Open Issues
0
Merged PRs
0
Open PRs