Themeopia Forms lets you build a contact form in plain HTML, place it with a shortcode and receive every message by email. Each message is also saved in your website, so nothing gets lost in a spam folder. If you have never used it, set aside about ten minutes to go from install to your first saved message.
Before you start
- WordPress 5.8 or newer and PHP 7.4 or newer.
- Your license key. It is in your order email and under My Account > Licenses on this site.
- An email address where you want to receive the messages.
Install and activate
- Download the zip from My Account > Downloads, or use the link in your order email.
- In your WordPress admin go to Plugins > Add New > Upload Plugin, choose the zip and install it.
- Activate the plugin.
- Go to Settings > BWE Licenses, paste your key and click Activate.
The plugin works without a key. The key is what switches on updates, so it is worth doing now rather than later.
Create your first form
- Go to Themeopia Forms > Add Form.
- Give the form a name, for example “Contact us”. Only you see this name.
- The Form Setup tab already holds a working form with a name, an email and a message field. Keep it or change it.
- Open the Email Settings tab and check the “To” address. This is where the messages arrive. It starts with your site’s admin email.
- Click Save Changes.

After saving, the shortcode appears above the form code. You can also copy it from the list under Themeopia Forms > All Forms.

Show the form on a page
Paste the shortcode into any page or post. In the block editor, add a Shortcode block and paste it there:
[themeopia_form id="12"]
Replace 12 with the number of your form. The same shortcode works in widgets and in the shortcode element of page builders. Visit the page, send a test message and look for it under Themeopia Forms > Entries.

Write your own form
The form is plain HTML. You decide the fields, the labels and the layout, and your theme styles it. There is one rule: every field you want in the email must have a name that starts with tf_. Fields without that start are ignored.
<p>
<label for="tf-name">Your name</label><br />
<input type="text" id="tf-name" name="tf_name" required />
</p>
<p>
<label for="tf-email">Your email</label><br />
<input type="email" id="tf-email" name="tf_email" required />
</p>
<p>
<label for="tf-topic">Topic</label><br />
<select id="tf-topic" name="tf_topic">
<option>Sales</option>
<option>Support</option>
</select>
</p>
<p>
<label><input type="checkbox" name="tf_interest[]" value="Design" /> Design</label>
<label><input type="checkbox" name="tf_interest[]" value="Hosting" /> Hosting</label>
</p>
<p>
<label for="tf-message">Message</label><br />
<textarea id="tf-message" name="tf_message" rows="6" required></textarea>
</p>
<p><button type="submit">Send message</button></p>
<div id="tf-form-message"></div>
A few things to know:
- You do not write the opening and closing form tags. The plugin adds them.
- The
requiredattribute makes the browser check the field before sending. - Checkbox groups use a name that ends with
[]. The ticked values are joined with commas in the email. - The empty
divat the end is where the thank-you or error message appears. Its id has to match the id you enter under On Submit (see below). - The button “Insert starter form” above the code box fills in a working example at any time.
Email settings
Open the Email Settings tab of a form. There are three parts.

Admin Mail (sent to you)
- To is the address that receives the messages. Use one address. If several people need it, use a shared mailbox or a forwarding rule.
- From should be an address on your own domain. Messages that claim to come from a domain the server does not belong to are often marked as spam.
- Subject and Body can contain placeholders (see the table below).
- Headers are optional, one per line. When the visitor’s email is known, the plugin adds a Reply-To header by itself, so you can answer with one click.
- Accept attachments is explained under Attachments.
User Mail (copy to the visitor)
Leave the “To” box empty if you do not want to send anything to the visitor. To send a confirmation, type the name of your email field, for example tf_email. The plugin only sends it when that field holds one valid email address. If it does not, the visitor still sees the success message and you still get your email.
Placeholders
Write the field name in capitals between percent signs. The field tf_phone becomes %TF_PHONE%. If the visitor left a field empty, or it does not exist, the placeholder is removed.
| Placeholder | What it prints |
|---|---|
%TF_NAME%, %TF_EMAIL% and so on |
The value of the field with that name. |
%TF_INTEREST% |
For a checkbox group, all ticked values joined with commas. |
%ALL_FIELDS% |
Every field, one per line, with a label. |
%SITE_NAME% |
The name of your website. |
%FORM_TITLE% |
The name you gave the form. |
%PAGE_URL% |
The page the visitor sent the form from. |
Sending HTML emails
By default emails are plain text. To send HTML, add this line to the Headers box:
Content-Type: text/html; charset=UTF-8
Then write HTML in the body. Whatever the visitor typed is made safe before it is placed in a HTML email, so they cannot add links or scripts to your message.
On Submit
Under On Submit you choose what happens after the form is sent.
- Show a thank you message. The form is sent in the background and the page does not reload. Enter a success message, an error message and the id of the element that should show them, for example
tf-form-message. If no element with that id exists, the plugin adds one under the form. - Redirect to a page or website. The visitor is sent to the address you enter. It can be a page of your site or any other website. It has to start with http:// or https://.
If a visitor has JavaScript turned off, the form is still sent. The page then reloads and shows your message above the form.
Entries
Every message is saved under Themeopia Forms > Entries, even when the email works perfectly. You can see which entries were sent by email and which failed.

- Use the search box to find a name, an email address or a word in a message.
- Use “All forms” to look at one form only.
- Click an entry number to open the whole message.
- Select entries and choose Delete to remove them.
- Click Export CSV to download the entries that match your search and filter. The file opens in Excel and Google Sheets.

Attached files are not kept. They are sent with the email and the entry lists their names.
Spam protection
Three checks are always on, and none of them needs a setup or an outside service.
- A hidden field. It is placed off screen. People never see it, bots fill it in. A message with that field filled is dropped.
- A minimum fill time. Nobody fills in a form in under two seconds. Faster submissions are dropped.
- A send limit. One visitor can send a form five times in ten minutes by default. After that they see a friendly message asking them to wait. Change the number under Settings > Themeopia Forms > General, or enter 0 to switch the limit off.
Dropped messages get a normal “thank you” answer, so bots do not learn what to change. The visitor’s address is only used as a hashed key for the limit and is not stored.
The plugin also works on cached pages. Visitors who are not logged in do not need a fresh security token, so a form on a page that was cached yesterday still works.
Attachments
- Open the Email Settings tab and tick “Accept attachments” under Admin Mail.
- Add a file field to your form code:
<input type="file" name="tf_attachments[]" />
Add multiple to the field if visitors may send several files. Up to five files per message are accepted. Under Settings > Themeopia Forms > General you set the largest file size and the allowed file types. Scripts and web pages (for example .php, .js and .html) are always refused, even if you add them to the list. Every file is checked, kept for a moment in a private folder under a random name, sent with the email and deleted right after.
SMTP
By default WordPress sends mail with the PHP mail function, which many hosts block or mark as spam. Under Settings > Themeopia Forms > Email (SMTP) you can send through a real mail server instead.

- Tick Enable SMTP.
- Enter the host, port, encryption, username and password your mail provider gave you. Port 587 with TLS is the most common choice.
- Enter a From email, usually the same as the username. Leave it empty to keep the address WordPress uses.
- Save, then use “Send a test email” at the bottom of the page. If it fails, the reason from the mail server is shown.
The password is stored encrypted. If you prefer to keep it out of the database, add this line to your wp-config.php and leave the password field empty:
define( 'THEMEOPIA_FORMS_SMTP_PASSWORD', 'your-password' );
For Gmail and Microsoft 365 use an app password. Sign-in with OAuth is not supported.
General settings
Under Settings > Themeopia Forms > General.

| Setting | What it does |
|---|---|
| Save entries | Keep a copy of every message in your website. On by default. |
| Store IP address | Save the visitor’s IP address with each entry. Off by default. |
| Delete entries after | Number of days to keep entries. 0 keeps them until you delete them. |
| Messages per visitor | The send limit per form, per ten minutes. 0 switches it off. |
| Largest file | Size limit for attachments, in MB. |
| Allowed file types | File extensions that visitors may attach. |
| Remove all data | Delete forms, entries and settings when the plugin is deleted. Off by default. |
Privacy
- Entries can delete themselves after a number of days.
- IP addresses are only stored if you switch that on.
- Tools > Export Personal Data and Tools > Erase Personal Data include the entries that contain the person’s email address.
- A suggested sentence for your privacy policy is added under Settings > Privacy > Policy Guide.
For developers
These hooks let you change the behavior without editing the plugin. Put the code in your theme’s functions.php or a small custom plugin.
| Hook | Type | Use |
|---|---|---|
themeopia_forms_is_spam |
Filter | Return true to drop a submission. Receives the flag, the fields and the form ID. |
themeopia_forms_submitted |
Action | Runs after a form was processed. Receives the form ID, the fields, the entry ID and whether the email was sent. |
themeopia_forms_rate_limit |
Filter | Messages allowed per visitor in the time window. |
themeopia_forms_min_fill_time_ms |
Filter | Minimum time to fill the form, in milliseconds. Default 2000. |
themeopia_forms_allowed_file_types |
Filter | The list of allowed file extensions. |
themeopia_forms_max_files |
Filter | Files allowed per message. Default 5. |
themeopia_forms_client_ip |
Filter | The visitor’s IP address. Change it if your site sits behind a proxy. |
themeopia_forms_form_html |
Filter | The final HTML of a form before it is printed. |
themeopia_forms_capability |
Filter | Who may manage forms, entries and settings. Default manage_options. |
For example, to block messages that contain a link in the message field:
add_filter( 'themeopia_forms_is_spam', function ( $spam, $fields ) {
if ( ! empty( $fields['tf_message'] ) && false !== stripos( $fields['tf_message'], 'http' ) ) {
return true;
}
return $spam;
}, 10, 2 );
If your site is behind a proxy or a service such as Cloudflare, tell the send limit where the real address is:
add_filter( 'themeopia_forms_client_ip', function ( $ip ) {
return isset( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_CF_CONNECTING_IP'] ) ) : $ip;
} );
Updates and your license
Everything about the license lives under Settings > BWE Licenses. You will see the status, the date your updates run until and how many of your sites are in use.
- Sites. One license works on up to three sites.
- Moving a license. Click Deactivate on the old site, then activate the key on the new one. You can also remove a site from My Account > Licenses on this website.
- When updates end. Nothing breaks. Your forms keep working. You just stop receiving new versions.
- Renewing. Open My Account > Licenses and choose how long you want to extend. The same key keeps working, you do not need to enter a new one.
- Lifetime licenses. They have no end date, so there is nothing to renew.
New versions show up on the Dashboard > Updates screen like any other plugin. You can also click “Check again” next to your key.
When something does not work
The form shows nothing on the page
- Check the number in the shortcode. If it is wrong, logged-in administrators see a note, visitors see nothing.
- Make sure the form is saved. A form that was deleted does not show.
I see no thank-you message
- Check that the id under On Submit matches the id of an element in your form code, for example
tf-form-message. - If no element has that id, the plugin adds a message under the form. If you still see nothing, your theme or another plugin may be stopping the script. Check the browser console for errors.
The message was saved but no email arrived
- Open the entry. If the email column says “Failed to send”, your server could not send the mail.
- Switch on SMTP and use the test email button. It shows the reason from your mail server.
- Look in the spam folder, and use a From address on your own domain.
“The page was open for too long”
This only happens to visitors who are logged in, when the page was open for a day or more. Reloading the page fixes it. Visitors who are not logged in are not affected.
“You have sent several messages in a short time”
The send limit was reached. Wait ten minutes, or raise the number under Settings > Themeopia Forms > General. If many visitors share one address, for example behind a proxy, use the themeopia_forms_client_ip filter shown above.
An attachment is refused
- Check that the file type is in the allowed list and the file is smaller than the limit.
- Your server also has its own upload limit, shown on the General tab. It cannot be raised from the plugin.
The license will not activate
- “Key not recognised” usually means a typo. Copy it from your order email instead of typing it.
- “All sites of this license are in use” means you already have three sites on it. Remove one in My Account > Licenses.
- “Refunded or cancelled” means the order behind the key was refunded.
- If the plugin says it cannot reach the license server, try again in a few minutes. If it keeps happening, check that your host allows requests to themeopia.com.
Moving from BWE Mail
Themeopia Forms is the new name of BWE Mail. Your forms, entries and settings move over by themselves:
- Install and activate Themeopia Forms. If BWE Mail is still active, a note asks you to switch it off.
- Deactivate BWE Mail. The next page you open in your admin moves your forms, entries and settings to Themeopia Forms. Form numbers stay the same.
- Go to Settings > BWE Licenses and enter your key again for Themeopia Forms.
- Delete BWE Mail when you have checked your forms.
Pages that use [bwe_contact formid="12"] keep working, and so do forms with fields named bwe_email and placeholders such as %BWE_EMAIL%. New forms use [themeopia_form id="12"] and fields that start with tf_. The old GitHub access token field is gone, because updates now come with your license.
Removing the plugin
If you delete the plugin, your forms, entries and settings stay in the database unless you ticked “Remove all data” under Settings > Themeopia Forms > General first. Deleting the plugin also frees the license on that site, as long as the site can reach themeopia.com at that moment.
What the plugin sends to us
When you activate a license, and once a day after that, the plugin sends your license key, your site address, the plugin version and the WordPress and PHP versions to themeopia.com. That is only used to check the license and offer updates. Messages from your forms are never sent to us.
Still stuck?
Email [email protected]. It helps if you include your license key, the address of the page with the form and what you see on the screen.
Version history
2.0.0
- BWE Mail is now Themeopia Forms. Forms, entries and settings are moved over automatically.
- New shortcode
[themeopia_form id="12"]and field names that start withtf_. The old shortcode andbwe_field names still work.
1.3.0 (as BWE Mail)
- Every message is saved as an entry, with search, filters and CSV export.
- Spam protection with a hidden field, a minimum fill time and a send limit.
- Test email for SMTP. The SMTP password is stored encrypted.
- Placeholders %ALL_FIELDS%, %SITE_NAME%, %FORM_TITLE% and %PAGE_URL%. Checkbox groups are joined.
- Privacy tools and a starter form for new forms.
- License and automatic updates from themeopia.com.
- Files are checked, kept in a private folder and always deleted after sending.
- The visitor copy is only sent to one valid address. Values can no longer add email headers or HTML.
- Fixed posted data being written to the PHP log, a server error for a wrong form ID, the missing success message after sending, and SMTP problems with an empty From address.