开发者 | Guido07111975 |
---|---|
更新时间 | 2018年6月12日 02:24 |
PHP版本: | 3.7 及以上 |
WordPress版本: | 4.9 |
版权: | GNU General Public License v3 or later |
版权网址: | 版权信息 |
email_admin="your-email-here"
email_admin="first-email-here, second-email-here"
from_header="your-email-here"
subject="your subject here"
auto_reply="true"
auto_reply_message="your message here"
scroll_to_form="true"
You can change field labels and messages using an attribute.
label_name="Your Name"
label_captcha="Please enter %s"
label_captcha="Please enter %s here"
message_success="your message here"
hide_phone="true"
label_phone="Address"
email_admin="your-email-here" hide_phone="true"
mail()
function by default, but when using SMTP there's less chance your form submissions are being marked as spam.
You should install an additional plugin for this. You could install for example:
Question?
Please take a look at the FAQ section.
Translation
Not included but plugin supports WordPress language packs.
More translations are very welcome!
Credits
Without the WordPress codex and help from the WordPress community I was not able to develop this plugin, so: thank you!
Enjoy!
Plugin has no settingspage, use the widget with attributes to make it work.
Plugin will use the site language, set in Settings > General. If plugin isn't translated into this language, language fallback will be English.
By default the email subject contains the text "New signup", followed by the name of your website. You can change this subject using an attribute. Note: this subject will also be used in the confirmation email to sender (if activated).
I have used a default so called "From" email header to avoid form submissions being marked as spam. Best practice is using a "From" email header (an email address) that ends with your site domain. That's why the default "From" email header starts with "wordpress" and ends with your site domain. You can change the "From" email header using an attribute. Your reply to sender will use another email header, called "Reply-To", which is the email address that sender has filled in.
A "thank you" message is displayed after submitting the form and in the confirmation email to sender (if activated). It's the message: Thank you! You will receive a response as soon as possible. You can change this message using an attribute.
No, my plugin only sends form submissions to the email address of your choice. With plugin Contact Form DB you can list form submissions in your dashboard.
An error message is displayed if plugin was unable to send form. This might be a server issue.
Your hosting provider might have disabled the PHP mail()
function of your server. Ask them for more info about this.
They might advice you to install a SMTP plugin.
The captcha (random number) uses a php session and cookie to temporary store the number. Your hosting provider might have disabled the use of sessions. Ask them for more info about this. Or your browser blocks cookies. You should enable cookies.
Of course, the native WordPress sanitization and escaping functions are included. It also contains 2 (invisible) honeypot fields (firstname and lastname) and a simple captcha (random number).
I have added the widget feature in version 1.1 because a signup form is mostly displayed in a sidebar. The shortcode to display form on a page is still supported (but without the additional information above form). Do not use shortcode and widget because this might cause a conflict.
You like my plugin and you're willing to make a donation? Nice! There's a PayPal donate link at my website.
Please open a topic in plugin forum.