Welcome to Dagon Design. In addition to free scripts, WordPress plugins, and articles, we offer a variety of services including custom theme design, plugin creation, and PHP scripting. Contact me for more information.

Version 5.8   Updated Sunday, July 5th, 2009 at 8:20pm

Secure Form Mailer Plugin For Wordpress

This is the WordPress plugin version of my secure PHP form mailer script. This plugin has a wide range of features including: Support for multiple instances, an easy to use dynamic form generation system (any number of fields, in any order), multiple recipients, multiple file attachments, optional auto reply feature, an image verification system, numerous security features (including protection against email header injection), a message template system, multiple languages, and too many other things to list. This plugin was designed to be easy to use, while still being extremely flexible. If you just want a simple contact form, you can set one up with just a few clicks. For those of you who need something a bit more advanced, you can completely customize the plugin to fit your needs – whether it is 5 fields or 500. A non-WordPress version is also available. ReCaptcha support has also been added, as well as support for storing the data in a delimited file.

You can see a very basic implementation of the WordPress plugin version of this script on this site’s contact page.

Notice: non-WordPress Users

Information on the PHP version of this script

Languages

As of the latest release, this script contains language files for:

English, Belarussian, Brazilian Portuguese, Catalan, Czech, Danish, Dutch, Estonian, Finnish, French, German, Greek, Italian, Japanese, Norwegian Bokmaal, Polish, Portuguese, Romanian, Russian, Slovak, Slovene, Spanish, Swedish, Turkish, Vietnamese

If you would like to submit a language file please contact me.

WordPress vs PHP Versions

To make things easier to find, the two versions of this script share much of the same documentation. While the basic features are the same, there are several differences, so be sure to reference the proper page.

Table of Contents

Due to the size of this page, I have split everything up into sections:



Download

  If you have found this page useful, please consider donating. Thanks!



Changelog

Since both the WordPress and non-WordPress versions of this script are updated together, the changelog below reflects both versions.

  • 07-05-09 – v5.8 Added Estonian language. Added code to check for duplicate field names. Can now use commas in checkbox descs. Fixed garbled auto-reply messages. Adjusted the displaying of uploaded file names in the email message. mb_encode_mimeheader error in WP fixed. Other adjustments to email headers. Added ‘id’ declaration to select boxes. Fixed incorrect example code in the instructions. Other minor changes.
  • 02-22-09 – v5.7 Fixed issues regarding the saving of attached files, data selection values not being recorded, and various minor fixes. Inline styles have been removed from the two field items that contained them. Tested and works in WordPress 2.7.1
  • 10-19-08 – v5.6 Added javascript date chooser field. Added html code field. Adjustments for better character set support. Fixed bug with spaces in selrecip. Commas can now be used in check boxes, radio buttons, and select boxes (see field info below). Timestamp option added for saving to data file. New email validation code (from http://code.google.com/p/php-email-address-validation/). WP Specific updates: Instances listed on main settings page – with descriptions of each instance (more info below). Updated display of options pages. Better support for multiple forms on one page. New language added: Vietnamese
  • 09-18-08 – v5.51 Captcha now displays properly in Safari and Chrome. All of the auto-reply issues should now be resolved. Few changes to headers for compatibility. The path for language files should now be auto-detected properly in all cases
  • 08-24-08 – v5.5 Fixed various undefined index errors, code changes to improve xhtml validity, attachments can now be saved to the server (not just emailed), improved email header handling for language support, can now show url (of form) in message, fixed issue with required select boxes, added Belarussian, Czech, and Japanese languages, clickable labels for radio and checkbox items, and various other fixes.
  • 05-13-08 – v5.41 Added support for saving form data to a delimited file. Fixed a few issues including the loading of recaptcha files, and attachment support.
  • 11-25-07 – v5.4 Added support for ReCaptcha, manual form code entry, 5 new languages (Catalan, Danish, Polish, Romanian, and Turkisk), several html and css tweaks, and other misc. updates.
  • 07-27-07 – v5.33 Few minor bugs fixed. Finnish language file added.
  • 07-08-07 – v5.32 Error messages affecting form alignment issue resolved. Italian and Slovak language files added.
  • 06-18-07 – v5.3 ‘undefined index’ errors fixed, image verification adjustments, p tags removed from fieldsets, changes to help html validity, various other fixes.
  • 05-09-07 – v5.25 ‘Thank you’ message now allows for form field inputs as well.
  • 05-08-07 – v5.24 Auto-reply message now allows for form field inputs. Language selection issue resolved. str_replace errors (on certain servers) fixed. Norwegian BokmÃ¥l language file added.
  • 05-01-07 Not a version update. Greek and Swedish language files added.
  • 04-18-07 – v5.23 Renamed email verification function (to fix conflicts with other scripts). The GD check is now disabled if you are not using image verification. Added two new language files – Portuguese and Russian.
  • 04-18-07 Not a version update. Brazilian Portuguese language file has been added.
  • 04-03-07 – v5.22 Email generation code has been modified to try to work with more servers. French language file has also been updated.
  • 03-28-07 – v5.21 Highly recommended update – Fixed an issue with the verification code not being handled properly. Nothing else has been changed.
  • 03-25-07 – v5.2 Email generation improved – should work better in more email clients. Many issues with message generation and field types have been fixed. Better support added for field requirement options. CSS for various fields updated. Issue with submit button fixed. Dutch and French language files added. Checkbox and drop-down issues resolved. Email verification method improved. Undefined index errors fixed, and much more. Be sure to read the updated instructions for the field types.
  • 03-13-07 – v5.1 Lots of updates: Slash escaping has been improved, p tags are now added around form elements, each form instance can have its own language setting, the language selection issue has been fixed, improved foreign character support in messages, check box handling improved, and a new optional auto reply feature has been added.
  • 02-06-07 – v5.0 This is a major update from version 4, and because of this, I have completely re-written this page, and removed the old changelog to save space.


Installation

  • 1) Download and uncompress dd-formmailer-wp.zip
  • 2) Upload the entire dd-formmailer directory to your WordPress plugins directory
  • 3) Activate the plugin
  • 4) Configure your options (explained below)
  • 5) Add the form to your page (explained below)


Quick and Basic Configuration

While this plugin is highly configurable, some of you may just want to get up and running quickly with a simple (and secure) contact form. If so, these are the minimum configuration changes you must make:

Create a new WordPress page, and type in the trigger text:

<!-- ddfm1 -->

Important: Make sure you add this using the html/code editor in WordPress, not the visual editor. In new versions of WordPress, just click the ‘html’ button above the edit box. If you use the visual editor it will not work, as the actual code you entered will be seen on the page, instead of being processed by the script.

Under Options -> DDFM1, fill in the following options:

Instance Description – This is a brief description of what you are using the instance for. All instances, and their descriptions, are listed on the main (DDFM-Main) options page, so you can easily keep track of them.

Contact page – Enter the full URL of your newly created contact page.

Recipients – Enter your email address.

Click Update options and you are finished! If you would like to learn more about the other features of this plugin, please continue reading.



Initial Configuration

After activating the plugin, you will have a new options page in the admin panel – DDFM-Main. These are the settings that apply to all instances of the plugin:

Instances – The number of contact forms this plugin will generate. If you just need a single contact form, leave this set to 1.

Current Instances – This is a list of the instances you currently have activated. It also displays the description for each instance. You can easily navigate to a particular instance from this page.

Image Verification Method – There are three choices for image verification. It can be disabled, you can use the script’s built-in system (a simple captcha – requires GD support on the server), or you can use the ReCaptcha system (requires signing up for a free account at recaptcha.net)

Basic Method Options – If using the basic image verification method, you can choose the text and background color for the image (3 or 6 digit hex codes). By default, the script will try and choose the best file format for the verification image, but if it gives you any problems, you can manually specify the format to see what works best for your server.

ReCaptcha Method Options – If using the ReCaptcha image verification method, you must enter the public and private keys given to you at the ReCaptcha website. These are used to generate the verification form, and the keys are specific to the website under your account (meaning if you use this script on multiple sites, you need a set of keys for each).

A ‘Load Default Options’ button is available if you wish to reset the settings on this page.

Each instance you create will have its own options page – DDFM1, DDFM2, etc. This is where you configure the settings for each individual form. These settings are listed below.



Form Configuration

These are the settings found on the options page for each instance:

Language – The language you want to use. To create a new language, simply duplicate the existing English.php file (in the plugins lang subdirectory), give it a new name, and edit it for your language. It will then automatically appear in this list (after reloading the page).

Contact page – This is the full URL of the page the form is actually going to be displayed on.

Recipients – If sending to a single recipient, all you have to do is enter the email address. This plugin supports multiple recipients, including CC and BCC, and even a drop-down box for recipient selection. Information on these configurations can be found further down on this page.

Form Structure – This is where you define the fields that will be used on this form. There are a lot of options available for this, and they will be explained further down as well.

Manual Form Code – This is a very advanced option that has its own section on this page.

Sender name, Sender email, and Email subject – These options help generate the email headers. If you enter a field name, it will be replaced by user input from that field. For example, if you have a form field called fm_name and you use that as the Sender name option, the visitor’s name will be used as the From field in the email. You can also combine them. If you have a field called fm_firstname and fm_lastname you could enter ‘fm_lastname, fm_firstname’ – For the Sender email option, just use your email field.

The Email subject option works the same way. For example, you could enter ‘Contact: fm_subject’ and it will use the subject that the visitor entered, with the ‘Contact:’ prefix.

Message Structure – This feature is optional. If left blank, the script will generate the email message itself, which will include all the data the visitor submits. If you choose to use this option, it will act as the message template. Simply enter your custom text, including your field names. When the message is generated, the field names will be replaced by the user input from those fields. Note: Since the script will just do a search and replace for field names, be sure they are unique enough. Example: A check for fm_message2 would also get triggered by fm_message when the script adds in the input.

Auto Reply – This is an optional feature that allows you to automatically send a pre-defined message back to those who contact you. More information on this is below.

Success Message – This is the text that is shown after the email has been sent. You can also use field names in this, and the user input from those fields will be used to generate the message.

Save attachments – If enabled, attached files will be saved to a directory on the server instead of attached to the email.

Save attachment path – Where files will be saved, if ’save attachments’ is enabled. This is the full path on the server, with a trailing slash. Directory must have write permissions. Example: /home/user/public_html/uploads/

Show required – If enabled, required fields will be marked with an asterisk.

Show URL – If enabled, the URL the script is running from will be added to the message

Show IP and Hostname – If enabled, the visitor’s IP and hostname are added to the message.

Wrap messages – This option wraps message lines to 70 characters to comply with RFC specifications.

Max upload size – This allows you to set the maximum file size (in bytes) for attachment uploads. This option only applies if the setting is lower than the value already set in your php.ini file.

Save Data to File – When enabled, the form input will be saved to a delimited file.

Still Send Email – When using the delimited file feature, this option determines whether or not the script still sends the email.

Data Path – The path to the file the data will be written to – relative to the script’s directory. Be sure to give this file write access.

Delimiter – Fields will be separated by this character. If this character is found in the actual data, it will be removed for simplicity.

Newlines – Newlines in input, such as text areas, will be replaced by this, to keep the data on a single line in the file.

Timestamp – Adds the date/time to the beginning of each line in your data file. This uses the PHP date format. Leave blank to disable.

The option page for each inststance also has a ‘Load Default Options’ button.



Other Configuration Options

With the exception of the text defined in the options pages, all text visible to the visitor is contained within the language file.

Visual changes to the form can be made in the included CSS file. The class names used in the examples below already exist within the CSS.



Usage

To show the form on your page, simply add the trigger text (followed by the instance number) to your page, just like you would any text:

<!-- ddfm1 -->

For those of you who want to display the form directly from a template file, you can use the following code:

<?php global $ddfm; echo $ddfm{1}->generate_data(); ?>

(where ‘1′ is the instance number)



Advanced Recipient Options

As mentioned above, if you want to send the messages to a single recipient, just enter the email address in the recipients field. To send to multiple recipients, separate the addresses with a | (pipe) character, and use one of the following prefixes for each: to= cc= bcc=

Examples:

to=user1@domain.com|to=user2@domain.com
to=user1@domain.com|cc=user2@domain.com
to=user1@domain.com|cc=user2@domain.com|bcc=user3@domain.com

You can have as many of each type (to, cc, bcc) as you like, and they can be in any order, although the first one in the list is the always the primary recipient, and must use to=

For those of you who want to let the vistor choose the recipient from a drop-down box, first you must enter selrecip in the recipients field. Then you must add a new line in the form structure box. Example:

type=selrecip|class=fmselect|label=Recipient|data=(select),User1,
user1@domain.com,User2,user2@domain.com

The type must be selrecip, but you can use whatever you like as the CSS class, and label. The first item in the data parameter is the default (unselected) option. After that are the names and email addresses. You can add in as many as you like – just keep them in the proper order (name,email,name,email,etc..). Only the names are visible within the HTML for privacy reasons.

The ‘(select)’ item is the default selection, which the user must change to submit the form. You can change the ‘(select)’ text if you choose.



Advanced Form Structure


This plugin uses a dynamic form generation system, which means that by simply adding a new line to the form structure, you will have a new field in your form. You can have as many fields as you like, and in any order. The only field type that you must absolutely have is the verify field if you are using the image verification option. All of the fields are explained below, with examples. Separate each field type with a single newline in the form structure option. (Some of the examples below are bit long, so they are wrapped to the next line – be sure that the only newlines are after each field type when adding them to your form structure.)

These are the different parameters that apply to most of the field types (Special exceptions and parameters unique to a particular field are listed under each field type):

  • type – This tells the plugin what type of field you are adding.
  • class – The CSS class used to style the field. The classes used in the examples below already exist in the CSS file.
  • label – Text that is shown next to the field.
  • fieldname – The name of the form field (must be unique).
  • max – Maximum number of characters allowed.
  • req – (OPTIONAL) If you want to require a field, set this to true. If not, do not add it.
  • default – (OPTIONAL) This allows you to specify the default value of a field.

TEXT

This is a standard text input field.

type=text|class=|label=|fieldname=|max=|[req=true]|[ver=]|[default=]

The text field type has a special parameter – ver – which can be used to verify the input. You can choose email (which checks that the input is a proper email address) or url (which checks that the input is not only a proper URL, but that it actually exists). If you do not want to use either validation option, do not add this parameter.

Examples:

type=text|class=fmtext|label=Name|fieldname=fm_name|max=100|req=true 

type=text|class=fmtext|label=Age|fieldname=fm_age|max=100|
default=Enter your age! 

type=text|class=fmtext|label=Email|fieldname=fm_email|max=100|req=true|
ver=email 

type=text|class=fmtext|label=URL|fieldname=fm_url|max=100|ver=url

DATE

This is a javascript pop-up date chooser.

type=date|class=|label=|fieldname=|[req=true]

This field type generates a text box with a calendar icon next to it. The user can enter a date manually, or click on the icon to see a small calendar that they can choose a date from.

To change this image, just replace calendar.gif in the script directory. Either give your file the same name, or search and replace the name in the script file.

Example:

type=date|class=fmdate|label=Event Date|fieldname=fm_date|req=true 

HTML

This field type lets you insert html, or other code, anywhere in your form.

type=html|text=

Example:

type=html|text=<p>Hello!</p> 

PASSWORD

This is a standard password field. It is exactly like a text field, except it shows asterisks when the user types.

type=password|class=|label=|fieldname=|max=|[req=true]|[confirm=true]

The password field type also has a special parameter – confirm – which if set to true, it duplicates the password field, so that the visitor has to confirm their input. If you do not want to use this, do not add the confirm parameter.

Examples:

type=password|class=fmtext|label=Password|fieldname=fm_pass|max=100|
req=true|confirm=true
 
type=password|class=fmtext|label=Secret Word|fieldname=fm_secret|max=100

TEXTAREA

This is a standard text area, for multiple lines of text.

type=textarea|class=|label=|fieldname=|max=|rows=|[req=true]|[default=]

The textarea field type has a special parameter – rows which defines the number of rows in the field (required for valid html).

Examples:

type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|
max=1000|rows=6
 
type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=1000|
rows=4|req=true
 
type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=1000|
rows=10|req=true|default=Type here!

WIDETEXTAREA

This is exactly the same as the standard textarea, except that it’s wider, and the label is above it instead of to the side.

type=widetextarea|class=|label=|fieldname=|max=|rows=|[req=true]|[default=]

Example:

type=widetextarea|class=fmtextwide|label=Message|fieldname=fm_message|
max=1000|rows=10|req=true

* Note that the normal textarea, and wide textarea fields use a different CSS class for formatting.


VERIFY

This field is required if you are using the basic verification method. It does not apply if you are using the ReCaptcha method. It is used for placement of the verification image (and associated text box) in the form.

type=verify|class=|label=

Example:

type=verify|class=fmverify|label=Verify

FULLBLOCK and HALFBLOCK

These are not standard form fields, but simply a way you can add text to your form. The full block is as wide as a wide textarea, while the half block is aligned with other standard fields. You can use basic HTML in your text if you like.

type=fullblock|class=|text=
type=halfblock|class=|text=

Examples:

type=fullblock|class=fmfullblock|text=This could be some sort of 
introduction message.
 
type=halfblock|class=fmhalfblock|text=This could be used to explain a field 
in greater depth.

OPENFIELDSET and CLOSEFIELDSET

These do just what the name implies – they open and close a fieldset in your form so you can help group fields together. It also allows you to specify a legend for the fieldset (required for valid HTML).

type=openfieldset|legend=
type=closefieldset

Examples:

type=openfieldset|legend=Your Information
 
(other field would go between these)
 
type=closefieldset

CHECKBOX

The checkbox field can be used to generate a single checkbox, or a group of them. The usage is a bit different than the other fields.

type=checkbox|class=|label=|data=
(fieldname),(text),(checked),(REQUIRED),
(fieldname),(text),(CHECKED),(REQUIRED)...

As you can see, the checkbox data is a comma separated list of four items per checkbox:

  • fieldname – A unique fieldname for each checkbox in the form.
  • text – The text shown to the right of each checkbox.
  • checkedtrue or false. This allows you to make checkboxes checked by default.
  • requiredtrue or false. If true, it means that the user must check the box to send the message. Mainly useful for ‘check here to agree’ type situations.

*NOTE* Because this field type uses commas to separate data, if you would like a comma to be displayed in your data, simply use two. It will be replaced later in the code.

Examples

type=checkbox|class=fmcheck|label=I Agree|data=fm_agree,I agree to the 
terms,false,true
 
type=checkbox|class=fmcheck|label=Interests|data=fm_i1,Computers,false,
false,fm_i2,Art,false,false,fm_i3,Music,false,false

RADIO

This field generates a group of radio buttons. Radio buttons are similar to checkboxes, except that they are treated as a group, and only one option may be selected.

type=radio|class=|label=|fieldname=|[req=true]|[default=]|data=(text),(text),
(text)...

The req and default items are optional. req, if set to true, makes the field required. default can be set to the option number you want to be selected by default (starting at 1).

*NOTE* Because this field type uses commas to separate data, if you would like a comma to be displayed in your data, simply use two. It will be replaced later in the code.

Examples:

type=radio|class=fmradio|label=Gender|fieldname=fm_gender|data=Male,Female
 
type=radio|class=fmradio|label=Color|fieldname=fm_color|req=true|default=1|
data=Unspecified,Red,Green,Blue

SELECT

The select field generates either a standard drop-down box, or a multi-select box, depending on the multi option. Option groups are supported as well.

type=select|class=|label=|fieldname=|[multi=true]|[req=true]|data=(#group),
(text),(text),(#group),(text)...

The multi and req options are optional.

If the field is required, the first option you have in the data paramater will be the default, which tells the user they need to select one of the options. If they do not change the default option, and it is required, they will receive an error.

The data field is just a list of the options, separated by a comma. To define the start of an option group, just prefix the group name with a # as shown below.

*NOTE* Because this field type uses commas to separate data, if you would like a comma to be displayed in your data, simply use two. It will be replaced later in the code.

Examples:

type=select|class=fmselect|label=Age|fieldname=fm_age|req=true|
data=(select),0-30,31-60,61-90,91-120

type=select|class=fmselect|label=Colors|fieldname=fm_colors|
multi=true|req=true|data=Red,Green,Blue

type=select|class=fmselect|label=Choose|fieldname=fm_choose|
data=#Category1,item1,item2,#Category2,item3,item4

FILE

The file field generates a file upload box. As with all other fields, you can add as many of these as you like, as this script supports not only attachments, but multiple attachments. The only thing to keep in mind is that you may need to find out the limit your server has set for file upload sizes.

type=file|class=|label=|fieldname=|[req=true]|[allowed=1,2,3]

The allowed field is optional, and lets you define a (comma separated) list of file extensions that are allowed to be uploaded. Otherwise, all file types will be allowed.

Examples:

type=file|class=fmfile|label=Upload|fieldname=fm_upload
 
type=file|class=fmfile|label=Upload|fieldname=fm_upload|req=true|
allowed=jpg,jpeg,gif,png


Manual Form Code

This feature allows you to manually specify the code used to generate your form. By default, this script uses the form structure information to dynamically generate the form. While this makes it easier for most people, since they do not have to write any code, it can limit those who need a bit more flexibility in their form structure.

Important Notice: Because this method means you will be writing the form code yourself, and it will not be generated by the script, there is no way for it to automatically insert the PHP code needed to put the user’s input back into the form when there is a validation error. It is just not possible for this to be done automatically due to the nature of the option. The only way this can be accomplished is if you know enough about PHP to insert the code manually yourself. In other words, this is a very advanced option – only for those who are very familiar with HTML forms and PHP.

  • 1) Customize your form using the ‘Form Structure’ option as you would normally – this is required even when using the manual code entry, as it allows for processing of the form.
  • 2) Be sure you have all your options exactly as you want them, and view your newly created form page.
  • 3) View the source of the page, so you can copy the generated html. The code you need is between the following lines:
    <!-- START of Dagon Design Formmailer output -->
    <!-- END of Dagon Design Formmailer output -->
  • 4) You can now customize this form code however you like, as long as the core elements of the form and fields are still in place.
  • 5) Enter your new code into the ‘Manual Form Code’ field in the options and save.
  • 6) If everything worked properly, your page will now use the custom form code. Once again, the standard form structure option is still required, as it is still for processing of the form.

You can also adjust the included CSS file to better fit your needs, or completely clear it out and manually create an entire new CSS structure for your task. Keep in mind that if you change any field items (or any options which affect the form code generation), you will have to repeat this process.

To disable the manual form code feature, just clear out the option for it.



Auto Reply Feature


The options page for each instance includes fields to define an auto reply message. This is a pre-defined message that is sent back to the visitor.

To use this option, simply enter the name, email address, subject line, and message for your auto response. To disable this feature, just leave the message field blank.

You can also use field names in the auto reply message, and the user input from those fields will be used to generate the message.



Saving Data to a File

This option allows you to save the form input in a delimited file. Please see above for a full explanation of the options.

With the WordPress version of this script, the path to the data file is relative to the root directory of your WordPress installation. Be sure to give this file write access.



Other modifications

Redirect after form submission – Method 1

It is possible to use Javascript to redirect the user after the form has been filled out. While this method is not 100% valid (Javascript redirection should go in the HEAD section of the page), it works. To add this feature, first find the following line in the script:

$o .= $sent_message;

And replace it with this:

$o .= '<script><!-- 
window.location= "http://www.mysite.com/" 
//--></script>';

(where mysite.com is the URL you want to redirect to)

Redirect after form submission – Method 2

This is another method you can use to redirect the user after the form has been submitted. First, find this line:

$o .= $sent_message;

And after it, add this:

$o .= '<META HTTP-EQUIV="REFRESH" CONTENT="4;URL=http://www.yoursite.com">';

Where ‘4′ is the number of seconds to wait before refresh, and the ‘http://www.yoursite.com’ is the URL you want to redirect to.

Passing values to the form

To allow values to be passed directly to the form, all you have to do is change all references of $_POST to $_REQUEST (The REQUEST superglobal contains the values of both POST and GET items)

Modifying the script to use HII for image verification

Miro has posted instructions for users wanting to use HII: Read the comment. Notice: Modifications listed in the comments may not apply for new versions of the script.

Using SELRECIP and BCC together

The easiest way to do this, is to find the following line in the script:

$send_status = mail($send_to, $email_subject, $msg, $headers);

If you are using SELRECIP, the message will be sent to whoever the visitor chooses. If you would also like the message to go to someone else, no matter who is chosen, just duplicate that line like so, adding in the address of the secondary recipient:

$send_status = mail("user2@domain.com", $email_subject, $msg, $headers);



Troubleshooting

Fields not working properly/Form is not displaying properly

As stated above, each field item needs to be on a single line in your form structure. Many of the examples above are long, so they do not show up on a single line. Be sure to remove any linebreaks when adding them to your form. One form field statement per line.

Verification image not showing up

The first thing to do is check to make sure your paths are set correctly in the options.

This plugin automatically chooses the best file type to generate the verification image. If your verification image is not displaying, the problem could be that your server will not properly generate that type of file. You can manually set this using the ‘Force image type’ option under the DDFM-Main options page. It allows you to manually specify jpeg, gif, or png.

Try all the options to see which works best for you.

Problems sending email

The most common question I receive is ‘Why am I not receiving email from the script?’

There are many reasons this can happen. The first thing to do is make sure you have access to the PHP mail function on your web server, and that there are no restrictions in place that might prevent certain features of this script from working. If you are not sure, please ask your host for information. Unfortunately, I am not able to spend the time troubleshooting general server issues for everyone.

Also try having the script send the messages to another email address (on another domain), just to be sure the problem is not with your email account.

If you believe you can use the PHP mail function and have already tried a different email address, create a small PHP file with the following contents (be sure to use your own email address):

<?php mail('you@domain.com', 'test subject', 'test message'); ?>

Open the file in your browser and then check your mail. If you did not receive the message, something is not set properly on your server, and the trouble is not with this script. Even if other mail scripts work for you, that does not mean this one will, as there are several methods to send mail in PHP.

If you do receive the message, it most likely means that your server is configured to not allow the use of the fourth parameter (extra headers) in the mail() function. To work around this, replace this line:

$send_status = mail($send_to, $email_subject, $msg, $headers);

With this:

$send_status = mail($send_to, $email_subject, $msg);

The only downside is that certain features (such as some header information, and the ability to send to multiple recipients) will be disabled. You may be able to contact your host and have them change this though. Many hosts add in this restriction for security reasons, to protect against unsafe scripts.

Lastly, some servers require an extra parameter for the mail function that specifies who the message is from. In many cases, this must be an email address on the server itself. Example:

$send_status = mail($send_to, $email_subject, $msg, $headers, '-f user@domain.com');

‘Headers already sent’ error

Another common question is the ‘headers already sent’ error message. Without getting into the details, this generally happens when something is output to the browser before a call to set_cookie, header, or a number of other PHP functions. Be sure there is no extra whitespace at the top of your file.

For WordPress users, it is also always a good idea to disable your other plugins temporarily to make sure that nothing is conflicting.

Mail headers showing up in message body / attachments not working

This issue can be caused if your server does not like the return/newline character set being used to end lines of the email headers. If you are experiencing this problem, try changing this line:

if (!defined('PHP_EOL')) define ('PHP_EOL', strtoupper(substr(PHP_OS,0,3) == 'WIN') ? "\r\n" : "\n");

To this:

if (!defined('PHP_EOL')) define ('PHP_EOL', strtoupper(substr(PHP_OS,0,3) == 'WIN') ? "\n" : "\n");

If you require special SMTP settings for mail to be sent

If you have to manually specify the SMTP settings, you can do so with the following code. This is only recommended for advanced users.

ini_set("SMTP","mail.MYDOMAIN.com");
ini_set("smtp_port","587");
ini_set("username","MYUSERNAME@MYDOMAIN.com");
ini_set("password","MYPASSWORD"); 
ini_set('sendmail_from', $sender_email);
$send_status = mail($send_to, $email_subject, $msg, $headers);
ini_restore('sendmail_from');

(Just search for the reference to the mail() function to see where to add it)

Conclusion

Please be sure to read the entire article before asking a question. I spend a lot of time on the scripts and plugins available on this site, and it can be hard to keep up with all the requests. If you need modifications or a custom version, please contact me. Thanks for reading!

  1. Very useful, thank you. We will test it.

  2. It is very very useful article.
    It a pity that there is no more information to this subject.

  3. The auto reply feature doesn’t send an e-mail to the person filling out the form. For instance if I have a contact form with Name, E-mail, Message, and want an auto-response e-mail to be sent to the user notifying them that their message was received and they will hear from me shortly, the auto-reply goes to the sender or auto-reply e-mail I entered in setting up the form, Not the visitor.

  4. Very nice article. Very interesting.
    Thank you!

  5. 1922
    Danny E

    I read through all the comments and nothing was quite clear with the issue I am having. A few people have asked the same question and there was no direct response that I could find. I apologize if there was but I really need some direction. I have installed the plugin in a wordpress installation. Everything works great except for one thing. The auto reply feature doesn’t send an e-mail to the person filling out the form. For instance if I have a contact form with Name, E-mail, Message, and want an auto-response e-mail to be sent to the user notifying them that their message was received and they will hear from me shortly, the auto-reply goes to the sender or auto-reply e-mail I entered in setting up the form, Not the visitor. I am lost on what to do and have not seen any instructions on how to handle this. Please respond with some help anyone who knows a solution. I thank you so very much in advance.

    Danny

  6. flash oyunlar bu sitede

  7. Many thanks for this plug-in !

  8. thanks for shared.. :)

  9. Im using your plugin. It worked fine but at the moment every time people fill in the form, we get a double reply and the contacter recieves a double confirmation.
    No where in the settings we can find how to solve this.
    Please help us!

  10. I’m going to try it out.

  11. 1916
    star11

    Great plugin! I tried two others before this one, both had major problems. This works perfectly and has MANY useful features! Thanks!!!

  12. 1915
    Cigarettelighters

    I have read the article properly. the article is on the dagon design. the article contain the software. work at home in comfortably. here need skill for english.

    Cigarette lighters

  13. Thank you for this info. I am new at Wordpress and hope to find here much useful information.

  14. wow its a amazing posting and i think you are brilliant blog writer what your creativity. so i want to tell you lot of thanks.

  15. I read your blog the best Mhsus point quite Surrey has also received much useful information

  16. It is a useful blog to blog a talented writer, so I did a lot to learn.

  17. Useful point of a blog or message by reading his blog you have hair that I did to you for the useful point

  18. grt work u hav to done..realy im very keen for it

  19. Türkiye’nin en büyük ad?n? feriha koydumdizisi web sitesi

  20. Türkiye’nin haber sitesi

  21. Excellent and amazing plug-in, well done!

  22. Ah well your comment! I did you good!rtyuty

  23. 1904
    Ramesh

    Hi,
    Thanks for the great Plug in. How can i configure if visitor want to send mail to specific people only.

    Details:
    A database table contains all mail ids, visitor want to send query to particular en-quire about a product in particular city, So the mail should be sent to the related people only
    Ex:-Visitor want a query about mobile price in Country-INDIA, State-Andhra pradesh City-Hyderabad AREA-Amberpet Product-Mobile

    when user selects the above fields from drop down menu, how his mail will reached to the mobile shop owners of Amber pet only?

  24. haber Türkiye’nin yeni haber yüzü

  25. Give me a reason to go I can tell you have been
    Has been want to tell you, with you I do not regret it, but sometimes hard to endure the fight, I really cry.

  26. 1901
    Sachin

    Hey Nice plugin. But in my plugin file upload button is not comming ??

  27. I’m having troubles using the plugin.
    Should be expect any kind of compatibility issues with different versions of WordPress? Thank you!

  28. Hi, I like your blog Secure Form Mailer Plugin For Wordpress · Dagon Design and have bookmarked it on Mister-Wong :-) !

    bye,
    Donn Salvato

  29. Nice post ! Thanks for your help. Keep doing it.

  30. I love the precious information you offer on your articles. I can bookmark your weblog and have my youngsters test up right here generally. I am moderately certain they are going to be informed numerous new stuff here than any one else!

  31. I’m not going to say what everyone else has already said, but I do want to comment on your knowledge of the topic. You’re truly well-informed. I cant believe how much of this I just wasn’t aware of. Thank you for bringing more information to this topic for me. I’m truly grateful and really impressed

  32. Excellent resource of quality information, thanks a lot.

  33. Thanks for your plugin explained in so detail. Dont have question to ask you at this moment. I am working on this plugin, i will ask you if get any problem in this. Once again thanks a lot because sharing such detailed information is always useful for many peoples.

    Jeni

  34. Hello,

    First thanks for your plugin, it is really the smartest I ever tried for complex forms, and very efficient.

    I do have a problem and hope you can help. I made a form with checkboxes.
    The public can check as many boxes as they need to (1 or more). We do receive the information properly, and the user receives a reply message.
    In this reply message, I would like them to receive the list of checkboxes they have chosen. But since each box has is own data name (fm_i1, fm-i2…), I don’t know what I should write to get the list of what has been checked, ond only this

    Thanks very much for your help !

    Cecile

  35. Give me a reason to go I can tell you have been
    Has been want to tell you, with you I do not regret it, but sometimes hard to endure the fight, I really cry.
    Coach

  36. Has been want to tell you, with you I do not regret it, but sometimes hard to endure the fight, I really cry.
    Coach

  37. Great plugin and superb article, thank you.

  38. I love the precious information you offer on your articles. I can bookmark your weblog and have my youngsters test up right here generally. I am moderately certain theyre going to be informed numerous new stuff here than any one else!

  39. Very nice information,I like it! Good work Thank you for sharing it with us!

  40. so great post.
    he..like it so .boots

  41. 1886
    babuali

    your site so informative, think it is very useful to all . i like your site

    Penny Auction Site

  42. so good for yo.y

  43. Good Plug in!

  44. recently appeared in a very beautiful wordpress themes. What is the cure for these beautiful themes, but bulky and heavy

  45. itz very useful thanks for share

  46. Works fine on WP 3.2.1, if you add some text to the HTML comment. Pure comment is stripped by Wordpress.

  47. rand Scientific research center host any g

  48. mudre izreke

  49. dijeta

  50. Many thanks for the awesome plugin! Very useful thing:)

  51. ?the pier at Gulfport precisely where riggings of shrimp boats are loose stitches

  52. good.very good.

  53. thanks for shared :)

  54. and sooo goood page.. thanks admin for nice text and goood picture.

  55. Only Christian Louboutin can deliver drool-worthy pumps that make our hearts skip a beat!

  56. nice share.i want be a joomla, wordpress,drupal experts.it s very helpful for me

  57. Looking for Cheap chanel bags or chanel purs in desinger handbags outlet, chanel bag on sale in chanel bags outlet, Save 50%, Free Shipping!!

  58. Your jersey lets everyone know all about your inclination and support for your favorite team.

  59. HI,This is daniel from:www.cheapcoach-online.com , thanks for your order ,Pls send the money to through PayPal.

  60. Thank you for this useful plugin.

  61. It is a useful tool. Thank you.

  62. A really interesting post. The article is very well structured and thus even for a layman to understand very well. Thank you.

  63. site:www.replicadesigner-handbags.com

  64. Thanks for the great plugin

  65. Thanks for the great plugin

  66. I really think this was very interesting and I am so grateful that you took your time to help us with this problem.

  67. Since Wordpress 3.2 strips Html comments this plugin has got a big problem! You should change the way it is implemented in the WP editor.

  68. Thanks for the great plugin! Am using it on my personal blog.

  69. Glad to see you here.

  70. 1856
    DoZ

    This site seems quite abandoned… Anyway… Since Wordpress 3.2 strips Html comments this plugin has got a big problem! You should change the way it is implemented in the WP editor.

  71. jfg Nice hosting! It’s my first time to read like this article.

  72. 1854
    pedro

    hi! i’ve been using your plugin for a while, but i would like to know how come i can’t find it in the wp plugin search. thanks!!

  73. grgt it’s very useful.

  74. Awesome – this is just great. Thank you very much for sharing.

  75. Also, is there any way to put into the mailer the filename of the file that the person uploaded to the server?

  76. I’m not sure why, but setting the cookie wasn’t working in Internet Explorer 8. I kept getting the message “No verification code generated”. The only way I could find to fix it was to hack the plugin to use sessions instead of cookies. Below are the changes I made:

    Changes to dd-formmailer.php to get captcha working in Internet Explorer

    
    Line 14: Added following code:
    			session_start();
    			
    Line 100: Commented out following code:
    			setcookie("ddfmcode", md5($ddfmcode), time()+3600, '/', '.' . $this_domain); 
    			
    Line 101: Added following code:
    			$_SESSION['ddfmcode'] = md5($ddfmcode);
    			
    Line 1758: Commented out following code:
    			} else if (trim($_COOKIE["ddfmcode"]) == "") {
    			
    Line 1759: Added following code:
    			} else if (trim($_SESSION['ddfmcode']) == '') {
    			
    Line 1763: Commented out following code:
    			} else if ($_COOKIE["ddfmcode"] != md5(strtoupper($t))) { 
    			
    Line 1764: Added following code:
    			} else if ($_SESSION['ddfmcode'] != md5(strtoupper($t))) {
    

  77. Thank you so very much for taking the time to share…very useful, indeed!fgjht

  78. Thanks for a nice share you have given to us with such an large collection of informationff dffd

  79. I will be using it definitelyranslator!

  80. Awesome website1

  81. In theory I’d like to write like this too – taking time and real effort to make a good article… but what can I say… I procrastinate alot and never seem to get something done.

  82. Youve got style, class, bravo…. I mean it…. Please keep it up the nice work …….

  83. This secure form mailer plugin seems nice to me because most of my blog are used WP. If it is OK I will use it in all of them.

  84. Outstanding job! The content given was great. I am hoping you maintain the excellent work done.

  85. Outstanding job! The content given was great. I am hoping you maintain the excellent work done.

  86. Hello everyone,

    I have a form on every post single page. I’d like to populate the `subject` field with a post’s title.
    I tried to add the following code to the single.php `$_REQUEST['fm_subject'] = get_the_title();` hoping that the DDFM will pick up that change and display a post’s title as the value of the subject field, but no luck so far.

    Does anyone know how to pre-populate a form’s field like that?? I would hugely appreciate any help!!

    Thank you,
    Dasha

  87. pure awesomeness!

  88. thanks for the great script, you have posted such a effectful article that it will certainly help me.

  89. Perfect plug-in.
    I’m getting an 404 error though at present :(

  90. This secure form mailer plugin seems nice to me because most of my blog are used WP. If it is OK I will use it in all of them.

  91. A non-WordPress version is also available. ReCaptcha support has also been added, as well as support for storing the data in a delimited file.

  92. Awesome post, very detailed, very helpful, great to use for healthcare websites or for MHA Programs

  93. Hi! Great script and everything is working. The only thing is that the mails from the form are being sent twice. Not a big problem but nevertheless a little annoying…

    Thanks a lot for a great script,
    Jörgen Myhrman
    Web developer Sweden

  94. Awesome plugin I will be using it definitely

  95. thanks for sharing all the knowledge with me it saved my money and time.

  96. Hi, I installed this widget in order to perform a public vote. I received all the emails, but they do not contain any info as to which box the voters checked. Could anyone please tell me where I can find the data to show me the results of the vote. Many thanks First off, thanks for the great script. For whatever reason, it’s aligning on the right hand side of the page, even though it should be on the left. Any ideas? This plugin is really great. It is doing so many things, while I’m playing

  97. I would willingly pay for this plugin, absolutely no question. Only one gripe from me….You could probably do with a slightly more explanatory FAQ regarding using other fields such as multiple recipients but apart from that, I really do like it a lot. I remember almost 1 year ago in my php classes teacher pointed this plugin as really interesting to study, related to secure form mailing. I have loved this plugin. Thank you for the upkeep.

  98. I think I figured out the cause of the problem with Chrome.
    It will not allow the mouse to click on a input box if it’s right before a type=html input.
    I do not get this problem when you view it on IE. So for now I have to have two forms, 1 for chrome users and 1 for IE users. I got them both to work with the styling I would like, but I still have to have two forms.
    Has anyone else run into this problem or know how to fix this so I only have to run one form?
    Also, the form is very skinny, does anyone know how to stretch it out? I’m very new to coding, so I appreciate any help!
    I moved the two forms to http://www.codeitbarcodes.com/submit
    Thanks!

  99. 1827
    Cameron Schwartz

    any chance that anyone has figured out a file upload monitor for the file upload field?

    Also, is there any way to put into the mailer the filename of the file that the person uploaded to the server?

  100. If you would like to duplicate the issue I described below, you can view my form at http://www.codeitbarcodes.com/contact
    Thanks!

  101. This is great plugin! Thanks! I do have one question, I am using Chrome. I am testing a form that I created and I ran into a problem. When you click on the box to input information, (Entering your name) it is not clickable. The only way to select the box to enter information is to click on the box before it and then tab to the next box. Is anyone else having this problem or know how to fix it? (Not every box is having this problem, it’s random boxes throughout my form. I tried doing different things, and double checking the code, but I run into the same problem regardless of the style of text field.)
    Any help would be much appreciated!!

  102. This Plugin is really great, thanks!

  103. Still the best plugin!

  104. Thanks for this great plugin.
    Very useful.

  105. i found your weblog searching about a different topic on yahoo, weird …… in any case, i spent some minutes reading this and another entries and gonna come again usually, i favored it…thanks…………..

  106. i found your weblog searching about a different topic on yahoo, weird …… in any case, i spent some minutes reading this and another entries and gonna come again usually, i favored it…thanks……

  107. Hi I am so glad I discovered your site, I truly found anyone by miscalculation, while My partner and i was seeking on Askjeeve for something else, Nonetheless My business is here right now and would just as to state cheers for a incredible post along with a all around enjoyable blog (When i also love the theme/design), I don’t have time for it to look over everthing at when but We have bookmarked it and also included your current RSS bottles, so while i have time We are back to learn to read much more, Please do continue the good work. Alex

  108. i found your weblog searching about a different topic on yahoo, weird …… in any case, i spent some minutes reading this and another entries and gonna come again usually, i favored it…thanks.i found your weblog searching about a different topic on yahoo, weird …… in any case, i spent some minutes reading this and another entries and gonna come again usually, i favored it…thanks.

  109. i found your weblog searching about a different topic on yahoo, weird …… in any case, i spent some minutes reading this and another entries and gonna come again usually, i favored it…thanks.

  110. Thanks for this great plugin

  111. nice plugin..
    thank you!

  112. Great plugin, thank you!

  113. Very nice article. Very useful.
    Thank you!

  114. Grate Collections! Thanks for share!

  115. I have not been able to get the select (required) to work properly. According to the instructions if it is required, and the first item is not changed the user will be forced to make a selection. It’s just not working for me.

    type=select|class=fmselect|label=How did you first learn about Eastman?|fieldname=fm_choose|req=true|data=(select),Where to Retire Magazine,Yankee Magazine,Boston Globe Magazine,Google search engine ad,PrivateCommunities.com,Friends/Family,Internet Search,Realtor,Other

  116. 1810
    MetaM

    I have a problem with sending the mail. Tried all the variation of code that where suggested in troubleshooting. PHP mail() function works, but the plugin doesn’t. The website is hosted on WebFaction. Any idea?

  117. Thanks for this great plugin

  118. I used to be more than happy to seek out this web-site.I wished to thanks in your time for this glorious read!! I positively having fun with each little bit of it and I’ve you bookmarked to check out new stuff you blog post.

  119. Great info thanks! What language is close to php as far as functionality and ease of use?

  120. nice plugin
    Thanks

  121. Great Plugin

  122. Does this plugin work with the latest version of Wordpress? I’d be interested in trying it out on my blog, but I don’t want to mess the things up. Thank you!

  123. 1803
    Steven

    Can I display the collected data from the form on one of my blog posts? If so – how?

  124. Great plugin, thank you!

  125. nice plugin
    Thanks

  126. Just awesome! This is the only contact form that really works for file attachment. Many thanks.

  127. It’s cool plugin, I am going to use it once.

  128. To make things easier to find, the two versions of this script share much of the same documentation.

  129. nice plugin that I have used, many thanks

  130. 1796
    jsherk

    Anybody using this with Wordpress v3.1? Don’t want to upgrade unless it will work! Thanks

  131. Thanks for sharing. i really appreciate it that you shared with us such a informative post

  132. Great little plugin, thanks fro making it availalbe for free! For some reason, my text feilds don’t have a border and are invible on a white background. How do I change the test feilds on my contact form to a light shade of grey or to add a border around them?

    Thanks,

    Izzy

  133. This is very nice.
    Thanks for share it!

  134. i really appreciate it that you shared with us …San francisco limousine

  135. this is very nice and well written blog i would like to thank admin for this great sharing.

  136. Also, Remember that we should nneither spread hate nor get affected by someone’s comment. As it is on internet it may be from? non-muslim to spread hate among muslim

  137. Thanks for a nice share you have given to us with such an large collection of information. Great work you have done by sharing them to all. simply superb

  138. Thanks for sharing. i really appreciate it that you shared with us such a informative post

    Bamboo Blanket

  139. Great article!
    Thanks for share it!

    Olesia

  140. The thank you very much , I well tray to keep rember it
    Wrought Iron Balustrades

  141. Thanks for sharing your ideas and thoughts, i like your blog and bookmark this blog for further use thanks again…
    Patio Flooring

  142. 1784
    sun

    please read through the comments because most common issues have already been discussed many times. Thanks.

    masters in engineering management

  143. Great article! Thanks for share it!

  144. I never knew about this plugin thanks alot!

  145. good posts.

  146. Sorry for my english, I’m using Google Translate.
    I can not configure SMPT in a plugin.
    The only place in the code plug in one place (where I found) I changed:

    @ ini_set (’sendmail_from’, $ sender_email);
    $ send_status = mail ($ send_to, $ email_subject, $ msg, $ headers);
    @ ini_restore (’sendmail_from’);

    on

    ini_set (“SMTP”, “smtp.google.com”);
    ini_set (“smtp_port”, “465″);
    ini_set (“username”, “my_mail@sonikelf.ru”);
    ini_set (“password”, “password”);
    ini_set (’sendmail_from’, $ sender_email);
    $ send_status = mail ($ send_to, $ email_subject, $ msg, $ headers);
    ini_restore (’sendmail_from’);

    But it still does not work and letters are sent as usual.
    What am I doing wrong? How do I fix it?

  147. This plugin has a wide range of features including: Support for multiple instances, an easy to use dynamic form generation system (any number of fields, in any order), multiple recipients, multiple file attachments, optional auto reply feature, an image verification system, numerous security features (including protection against email header injection), a message template system, multiple languages, and too many other things to list.

  148. Thanks so much for all your contribution.I am having a slight problem, how do I apply this plug-in to blogger templates?..thank u

  149. you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.

  150. I never knew about this plugin thanks alot!

  151. 1775
    Alp

    If you are like me, probably you just hit the “Enter” key for Updating Configuration after changing the options, but when you do that your Configuration will be reset in DDFormMailer. To prevent that just open dd-formmailer.php, search for ‘Update options’ (there are 2, 1st in 933th line and 2nd in 2390th line) and replace whole these lines with next lines (the lines that contain ‘Load Default Options’ text). Then when you change something just hit enter to save (except memo controls). NOTE: You have to change whole lines, not just ‘Update options’ and ‘Load Default Options’.
    Finally thanks for that amazing plugin.

  152. Hi,here is my problem:

    I’ve recently moved my site to a different hosting, which uses IIS7 (I had no choice about that…). well, the thing is, my ddformmailer.php was generating an error when sending, then I found out that the solution was to change all the “\n” to “\r\n”, and it worked…, but, yesterday I’ve noticed that when submitting the form from IE8 is still failing (warning funcion mail() SMTP server response 554).
    However, it works on ie7 and, of course, on firefox and chrome; is rare…
    Any idea?
    Thanks a lot

  153. 1773
    hanuman

    Hi, I would like to change the text on the submit button, I can go into the code and change it but that affects all of the ddfm instances on the site. I need different text on three different submit buttons. How do I do this?

    Sorry if you have gone over this before but there’s 119 pages of comments to look through and I dont have a spare few hours to do it.

  154. Mail headers showing up in message body / attachments not working :D

  155. Great article! Thanks for share it!

  156. Great article.
    Thanks.

  157. Great. Very informative post.

  158. Very useful.
    Many thanks for sharing.

  159. thanks for dagon design. we have installed dagon design map beside for other

  160. great plugin and thanks for sharing..

  161. Thanks so much! Great plugin.
    wmv to dvd, mov to dvd

  162. 1764
    jeannie

    is there any way I can rename the files users upload using this form?
    people name their files the stupidest things…
    so instead of HIIMDumB9876.jpg I would like to have the image saved as username.jpg

    is that passible?

  163. 1763
    Freakstar

    Amazing development, it works more than fine for me! :)
    I´d only like to know if there´s a possibility to enable HTML in the autoreply message, Since I´d like to email a few images in the autoreply. Is that somehow possible?

  164. Thank you for this great plugin… I hope I can tweak this powerful plugin for my clients web project needs…

    Best regards,
    Horasweb

  165. designed to be easy to use, while still being extremely flexible. If you just want a simple contact form, you can set one up with just a few clicks. For those of you who need something a bit more advanced Thanks

  166. Great tools, i know this from my friend, so should use this..

  167. Great article! Thanks for share it!

  168. 1758
    MP

    Thanx for answering JML, but your code doesn’t solve my problem :( As $_COOKIE["ddfmcode"] is always empty, the last condition is always false and the verification code always invalid. Another idea?

    case ‘verify’:
    // type=verify|class=|label=
    if ($verify_method == ‘basic’) {
    $t = ddfm_stripslashes($form_input['fm_verify']);
    if ($t == “”) {
    $errors[] = DDFM_MISSINGVER;
    } else if (trim($t) == “”) {//(trim($_COOKIE["ddfmcode"]) == “”) {
    $errors[] = DDFM_NOVERGEN;
    } else if ($_COOKIE["ddfmcode"] != md5(strtoupper($t))) {
    $errors[] = DDFM_INVALIDVER;
    }
    }

  169. MP (1755) … I too ran into the same issue you had with the verification code when using the basic verification method. I was able to fix the issue for my site. Here is the modified code I used:
    case ‘verify’:
    // type=verify|class=|label=
    if ($verify_method == ‘basic’) {
    $t = ddfm_stripslashes($form_input['fm_verify']);
    if ($t == “”) {
    $errors[] = DDFM_MISSINGVER;
    } else if (trim($t) == “”) {//(trim($_COOKIE["ddfmcode"]) == “”) {
    $errors[] = DDFM_NOVERGEN;
    } else if ($_COOKIE["ddfmcode"] != md5(strtoupper($t))) {
    $errors[] = DDFM_INVALIDVER;
    }
    }
    break;

  170. 1756
    Connie

    Great tool,
    I would like the user to be able to select more than one Recipients with selrecip. Can this be done and if yes can you give a sample?
    Thanks

  171. 1755
    MP

    New with wordpress and newer with this plugin. Something doesn’t work with the verification code (if i comment that validation i get the email sent). Following the code I see the code I typed in $form_input['fm_verify']) but $_COOKIE["ddfmcode"]) is empty and therefore I get the error: ‘DDFM_NOVERGEN’-'No verification code generated’.
    Any clue what may be happening? Thanks a lot in advance.

  172. 1754
    jibran

    Companies these days are using ergonomic furniture to ensure that there are no injuries from work related hazards. Use an ergonomic chair and feel better comfort in your back and shoulder. oxyhives

  173. 1753
    Nean

    It is possible to configurate one selrecip for CC and one fix To Recip?

  174. To make things easier to find, the two versions of this script share much of the same documentation. While the basic features are the same, there are several differen.

  175. 1751
    Bill Petrey

    Love the script and use it in both PHP and WP plugin formats. Was wondering if there was a way to include it in HTML on the sidebar in the Text Widget or if there’s another way?

  176. ok thanks 4 the info

  177. thank ya!!

  178. thanks very much for this post. great job.

  179. Thanks for a great tool! I really needed something that was configurable and this fit the bill perfectly! Thank you x 1000! Here’s a link to the form for reference… http://www.stompncrush.com/beer/online-grain-order

  180. I tried using DDFM form inputs, but no success. This helped me heaps!

  181. 1745
    Derek Makekau

    For everyone struggling with styling the submit button, here’s the easiest way.

    Open dd-formmailer.php and search for “form_submitted_”, then insert “class=buttonStyle” before “name=’form_submitted_’”

    Open dd-formmailer.css and create the new class, something as basic as:

    .buttonStyle{
    background: #d8d8d8;
    border:none;
    }

    Gonna add a few words here in case people try to search for help in these comments like I did: style, submit, button

  182. Thank you so muchhhh for sharing a “coding software”

  183. this website is very good,i like.thanks for your sharing.

  184. 1742
    Derek

    I’m toying w/ your WP plugin, and am trying to figure out how to hard code the form. I’ve got all of the other lines, but what must I do to render the recaptcha verification input?

    here’s what I got so far:

    
    <table border="0" width="100%">
    <tr>
    <td>Your Name:</td><td><input type=text name="fm_name" size="40"></td>
    </tr><tr>
    <td>Your Email:</td><td><input type=text name="fm_email" size="40"></td>
    </tr><tr>
    <td>Message: </td><td><textarea name="fm_message" cols="200" rows="20" wrap="soft"></textarea></td>
    </tr><tr>
    <td>&nbsp;</td><td>
    
    WHAT HTML DO I PUT HERE IN PLACE OF type=verify|class=fmverify|label=Verify
    
    </td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="send"></td>
    </tr>
    </table>
    

    Also, what must I do to have my submit button work with your php code? label it anything special?

    Finally, do I explicitly put this in tags?

  185. 1741
    RC

    Hi,

    Will your plugin work with Wordpress 2.9.2?

    Thanks very much.
    RC

  186. I am however having problems with my New York Theme options center. The options area is no longer functioning or able to update

  187. 1739
    Drew

    Correction, neglected to rename one of my variables, the previous script should look like this:

    
    if ($_GET["myName"] ==! "") {
    $o .= "\n\n" . '	<p><input type="hidden" name="myName" value="' . $_GET["myName"] . '" /></p>' . "\n";
    }
    

    Also discovered that although you can pass to a hidden variable, for some reason the DDFM script doesn’t recognize that variable, so I had to revise the above code to the following using a textfield which I then removed the background and border via inline CSS to make it look non-editable to the viewer. Then you can simply make a custom message to yourself in the plug-in page using the variable like this:

    “The name I pass to the form is myName”

    Here’s the modified version with the textfield + css

    
    if ($_GET["myName"] ==! "") {
    $myName = $_GET["myName"];
    // $o .= "\n\n" . '	<p><input type="hidden" name="myName" value="' . $_GET["myName"] . '" /></p>' . "\n";
    $o .= '<p class="fieldwrap"><label for="myName"><span class="required">*</span> My Name</label><input class="fmtext" style="background: transparent; border: none;" type="text" name="myName" id="myName" value="' . $myName . '" /></p>';
    }
    

  188. 1738
    Drew

    PASSING VARIABLES TO THE FORM AS HIDDEN VALUES

    Ok, for those of you, like me who have searched and searched for a way to do this, I want my last 6 hours of tinkering (I’m no php wiz) to get some use. If you are passing a variable in a link like this:

    http://mydomain.com/contactme.php?myName=Drew

    And you want that variable to be passed and added to the form as a hidden form field, here’s the solution I found:

    In dd-formmailer.php go to line 2146 or so just before the line where the script generates the hidden MAX_FILE_SIZE value and do the following where “myName” equals the variable you wish to pass.

    
    if ($_GET["fm_partner"] ==! "") {
    $o .= "\n\n" . '	<p><input type="hidden" name="fm_myname" value="' . $_GET["myName"] . '" /></p>' . "\n";
    }
    

    I haven’t been able to figure out if there’s a way to do this straight through the DDFM Form Structure input field where all the other form elements go in the Plug-In page, but at least the above works.

    Hopefully somebody finds that useful.

  189. this website i like.thanks for your sharing.

  190. I have used the ddformmailer script on a website for some time, but since it was rebuilt due to a server crash the red asterisks are not showing up for the required fields, and instead it says “DDFM_REQUIRED” in big red writing. Also the submit button says “DDFM_SUBMITBUTTON”. I haven’t been able to figure out what is wrong, and after a couple of hours have got sick of sifting through the comments on your website to try to find the answer.
    Could anyone advise me what is wrong?
    Thanks,
    Caro.

  191. Many hosts add in this restriction for security reasons, to protect against unsafe scripts.

  192. Thanks for the very interesting information!

  193. function to see where to add it

  194. Advanced Recipient Options

    type=selrecip|class=fmselect|label=Recipient|data=(select),User1,
    user1@domain.com,User2,user2@domain.com

    doesn’t work. only allows me to choose one option

  195. <a href="http://lowpricestoreonline.com/"></a>

  196. http://cheapshoppingsale.com/

  197. will focus on insulin resistance and metabolic syndrome.thanks

  198. will focus on insulin resistance and metabolic syndrome.

  199. Thanks for the information. Will you be making others like this?

  200. i’ve two request first the formats of calender, second flexibility of contact form (left, right even at the bottom)

  201. 1725
    Mikey

    When I set the form up to use radio button or checkboxes, the formatting gets really weird. It will have the first checkbox on one line justified to the right and then below it, the label for that checkbox is left justified (sort of) and the remaining checkboxes in that set are all justified to far to the left that they line up with the label for the whole set of checkboxes. To see what I mean, look here

  202. Hello, is it possible to have the calendar produce a DD/MM/YYYY date format? Currently it appears to be MM/DD/YYYY only.

  203. Is it possible to make the contact form appearing on the left instead of in the middle of the page???

  204. Found the problem. The options page for the ddfm did not list the correct url for the contact page. Sorry but maybe someone else will see this and it may help them.

  205. I just uploaded WP to a sub folder of CDBN.com. I activated the mailer and now when I test it, I get a Error 404 – Sorry, Not Found page and the mail is not sent. Any suggestions.

  206. 1720
    Helg Jónsson

    This form is the best form plugin I have used!! Fast Secure Contact Form and Contact Form 7 are nothing compared to this. However I have just one little problem. I don´t want the contact form appearing in the middle of the page. Instead I would like it to appear on the left side. Any suggestions ?

  207. great stuff man,i always loved your blog,always find great stuff to read in here,was really helpful for my researchs.Thanks

  208. Very interesting site, the plugins are really good. Thanks for posting it.

  209. I am impressed by the information that you have on this blog. It shows how well you understand this subject. Bookmarked this page, will come back for more. You are awesome.

  210. 1716
    Nerd

    Hi

    I really thank u for the great plugin ! I got a question ! how can I control the upload file types ? I need 4 types

  211. This is a good plug-in. Thanks for this.

  212. Hello!

    Great plugin, I use it on many of my personal and client sites. Quick question, is there a way to “pre-fill” any of the values?

    Eg.
    type=text|class=fmtext|label=Myspace|fieldname=fm_myspace|max=100|req=true|ver=url

    On the contact page, I’d like its text area to already have “http://www.myspace.com/” filled in. Can this be done?

    Thanks in advance.

  213. Really good stuff, thanks

  214. 1712
    Julia

    Hello, is it possible to have the calendar produce a DD/MM/YYYY date format? Currently it appears to be MM/DD/YYYY only.

  215. This is a good plug-in. Thanks for this.

  216. 1710
    droelli

    any updates available? captcha don´t working in V3.0.1

    greetings droelli

  217. hi really great plugin for form.
    i am facing small issue.
    req=true is not working for me.

    could anyone help me out in this issue.

  218. 1708
    Julia

    Hi,

    Is there a way to change the format of the date that the calendar produces from month-day-year to day-month-year?

    Thanks!

    Julia

  219. 1707
    Erum

    A suggestion: Why not use AJAX for form submission? This way the page will not reload on error and the fields will remain filled in manual mode as well. May be make this optional in case everyone does not want to use AJAX.

  220. 1706
    Erum

    With reference to comment #1705

    I just read: The only way this can be accomplished is if you know enough about PHP to insert the code manually yourself.

    Is there a tutorial I can follow to add this? Will really appreciate that.

  221. 1705
    Erum

    When I use the manual form code option, when I submit it and I get an error, the form does not remember the values already filled out in the form.

    It does when I don’t use the manual code. I copy/pasted the exact code that comes out when using the auto option but it still does not remember values.

    What am I missing?

  222. I use this plugin over http://www.nitestar.com.au it is marvelous. there is a little problem that i’m facing is that it is not sending email to any gmail account.
    Can anyone help me out?

  223. Nice one. Thx for the sharing.

  224. 1702
    jayray999

    Can the “SAVE DATA TO FILE” feature be extended to allow admins to choose individual fields that are saved? For example can I choose to save Name and Email Address but not the message or any other user inputted field?

  225. Great Post, I especially found it useful where you stated.

  226. thanks so much, it’s the greatest contact form plugins.. wish you all the best.

  227. Thanks for this plug in – great work!

  228. i want you people to help me to cerate mailer and site of the mailer username and passworld of the mail box

  229. If you are having an issue with a script, please make sure you have read the entire article. Also, please read through the comments because most common issues have already been discussed many times. Thanks.

  230. Thanks fine info Secure Form Mailer Plugin For Wordpress

  231. Equipment Management Software
    Your supply chain is a complex operation consisting of multiple people and many moving parts. As strong as your own team is, you are constantly impacted by your suppliers and customers. Not many truly understand the challenges you face ensuring that everything including raw materials, manufacturing, inventory, equipment and assets are all in place and functioning to meet the customer’s expectations.

  232. Hi I’m jhaving problems with two forms. It appears to be a common problem since you did the update and to make it work with wordpress 3. When I click submit I get an error saying ‘Errors!No verification code generated’ when clearly one has been generated and entered into the verification code box. Do you have a solution/fix for this that can be easily implemented?

  233. I love this plugin, particularly the fact that I can customize virtually anything via the html option.

    I have two forms, both with the same issue.
    http://www.nantucketatheneum.org/New/programs-events/for-teens/teen-advisory-board-application/
    http://www.nantucketatheneum.org/New/support-your-library/volunteer/volunteer-application-form/

    If I use the Auto Reply, the Email generation message is never received. If I blank the Auto Reply fields, the Email generation works again. Does Auto Reply work along with the Email generation or have I hit an either/or issue.

    Thanks!

  234. 1692
    Paul

    Hi I have a question with regards to changing the text within the message button.
    Right now I have this:

    type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=1000|rows=6|req=true

    There’s a button that reads SEND MESSAGE Do you know how can I change the text just like how the button on this page tells me to Submit Comment? Thanks for your help!!

  235. I really like this plugin as it is one of the few that doesn’t break the theme I’m using, however I have noticed that if I try to use a drop down instruction, it messes up the rest of the code. Any ideas?
    i have the same probleme.I will be happy if some resolve our probleme

  236. Thank you very much for sharing knowledgeable article. Keep posting.

  237. I’m unable to use multi-select lists with Form Mailer 5.8; I get the following error:
    Warning: stripslashes() expects parameter 1 to be string, array given in /home/pushint/public_html/website/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 363
    Anyone else seen this error?

  238. I really like this plugin as it is one of the few that doesn’t break the theme I’m using, however I have noticed that if I try to use a drop down instruction, it messes up the rest of the code. Any ideas?

  239. 1687
    julie, s

    Hello,
    I use dagon and I am really very satisfied with it,
    However I note a bug.
    I have DDFM like :

    type=text|class=fmtext|label=Nom|fieldname=fm_nom|max=100|req=true
    type=text|class=fmtext|label=Email|fieldname=fm_email|max=100|req=true|ver=email
    type=text|class=fmtext|label=Sujet|fieldname=fm_sujet|max=100|req=true
    type=verify|class=fmverify|label=Code à saisir
    type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=1000|rows=6|req=true

    Let us imagine that the name is : “julie, peter, marc of France”
    –> When the users use commas I receive an e-mail with the fm_name appears such as :

    “julie@mywesthosting.com, peter@mywebhosting.com, marc”

    –> Only the last email is right

  240. thanks again

  241. I use this plugin a lot. However, I wonder if there was a way to allow the form to send a copy to the sender… not just auto-reply, but send the form to the recipient and the sender. If I putting fm_email in the set up for recipients, will it work?

  242. type=select|class=fmselect|label=Business Type|fieldname=fm_Businesstype|
    multi=false|req=true|data=Automotive and Recreational Vehicles City of Victoria,Third Category,Fourth Category

    At http://thinkvictoriamn/private, take a look at “Categorize your Business Fieldset” and note that no options will appear. The above code is what I used. I also cut an pasted your examples directly into this fieldset as well, and I had the same problem.

    Thanks

  243. this new for me thanks for this.

  244. 1682
    test

    hello

  245. Is there a way to change the Success URL? I can’t seem to find it. Otherwise, love the clean and simple design.

  246. I have donated and can.t seem to download it to my hard drive.
    How do you down load this filed? every time I click the download it takes me to donate.

    At the table of contents it have about 12 other things under the word download. please explain to what I suppose to do to get this info to my hard drive in a zip file? Then I can upload it to WP.

    Thank You

    Nicholas

  247. Thanx a lot! Just what I needed :-)

  248. Hey man, was just browsing through the internet looking for some information and came to your site. I am impressed by the information that you have on this plug-in. It shows how well you understand this subject. Bookmarked this page, will come back for more. You, my friend, ROCK!!!

  249. I would willingly pay for this plugin, absolutely no question. Only one gripe from me….You could probably do with a slightly more explanatory FAQ regarding using other fields such as multiple recipients but apart from that, I really do like it a lot.

  250. I really love this plugin, it’s so easy to use and covers a lot of ground!

    My clients are asking if the field name (label) in the email output can be differentiated (e.g. bolded) from the field value, so you can easily tell what is the question and what is the answer. Is it something that you guys can implement in a future release of the plugin? Would we be notified of the new release within the plugins page of the WordPress back-end?

    Thanks!!!

  251. After activating the plugin, you will have a new options page in the admin panel ….

    Plz any one tell me where is this page?
    ..Plz i have problum to make configuration of this plugin..
    Thanks in advance……

  252. Love this plugin!

  253. 1673
    Lori

    This is a fantastic plugin – thanks! I did have a problem, with the dropdown list, but thank goodness I found Ashley’s problem and solution (around comment 518). I couldn’t figure out how to get the darned drop-down list to work for letting users choose a recipient. Simply entering selrecip into the settings>recipients box fixed it. I agree with Ashley that this should be made more abundantly clear in the plugin documentation. Like “for multiple recipients, see the doucmentation” could link to the precise bit of documentation that explains this. I wasted HOURS troubleshooting this, and the solution was so simple.

  254. thanks for this nice article

  255. You have saved us a lot of time and bother moving from one piece of software top another and often back again.

  256. I remember almost 1 year ago in my php classes teacher pointed this plugin as really interesting to study, related to secure form mailing.

  257. I have loved this plugin. Thank you for the upkeep.

  258. Amazing plug-in, well done!

  259. 1667
    Ferlin

    I’ve added the following field to the Form Structure:
    type=selrecip|class=fmselect|label=To|fieldname=fm_whoto|data=(select),author1,email@domain.com,author2,email@domain.com
    I would like to output the selected name (author1 or author2 NOT the selected email address) in the message body. I haven’t been able to figure it out yet. Can you provide any help?

  260. Is there a way to change the Success URL? I can’t seem to find it. Otherwise, love the clean and simple design.

  261. Just wondering if there is a field for uploading pictures. I have a form that I am working on that requires that users load 2-4 images to be sent with the rest of the form information.
    How would this look?

  262. Great plugin and works with 2 of my sites but not the 3rd one. I am guessing that it is not compatable with PHP 5? My host does not support PHP 5, only PHP4. Can you help?

  263. 1663
    Justin

    Need to know how to get the form to be in columns as I have created a large form that you have to scroll down to view all fields. Is there any css that can be changed in order to do this.

    I can do it in normal html and css but using dagons form structure is dfferent.

    Any help would be great!!

  264. This is nice plugin. I have junk mail problem at my blog. With this plugin resolve the problem. Thanks.

  265. 1661
    Dee

    Suddenly I’m getting two emails for each form submission on my site. I’m using WordPress 2.9.2 and haven’t added any plugins since my initial setup, so it shouldn’t be a conflict there. Anybody else experiencing this?

  266. 1660
    Aaron McWhirter

    I’ve never seen anything like it. Great script, savage work gone into it, used it many times before and yet … why is it that no matter what I do I cannot style the input text or textarea text whatsoever, the very first thing I want to do. I can’t understand it, it’s insane.

    I can make the font bold, change the color, everything except change the font size. It worked in older versions, I know that, Im looking at it. Another bugbear is the submit button. Why do I have to read the entire php file to change the value? It’s insane!

    Any ideas? I’ve got the latest version of the script & Firefox Namoroka for Linux.

  267. 1659
    Tracy

    I actually found the hints from a post back in 2007. If you want to left justify the form, open the dd-formmailer.css file and change .ddfmwrap in the STURCTURE CSS section to:

    .ddfmwrap {
    margin: 5px;
    width: 450px;
    text-align: left;
    }

  268. 1658
    Tracy

    Is there a way to get the form to show up left justified rather than in the center of the page?

  269. Can I use this for multiple contacts in wordpress and multpile redirects?
    If so where would I fing the correct location to put the entries?

  270. I love your contact forms! I just installed this on a new Wordpress 3.0 site and it worked great!

  271. Hi,

    I have installedSecure Mailer Form onto my “Contact Us” page on my website.
    The problem is that the “Send” button is not showing and therefore visitors cannot send me their comments etc. Can you let me have your suggestions please a.s.a.p as I am a full time professional and need to have this service available.

    Many thanks,

    Jim McMail

  272. 1654
    Colin

    Great form..Question though:
    If I’m using selrecip, is there a way I can make my subject field be whatever is chosen as that selrecip – obviously the name, not the email address?

  273. Good article! Thanks for share it!

  274. 1652
    Ema

    Nice plug-in, works fine. I’would like to send you Language Settings in Serbian. Thank you!

  275. Would this plugin works with wp 3.0?

  276. Awesome plugins. I like your plugin that much

  277. You guys always invent something unbelievable. Great word guys,,

  278. Correction.. there is a conflict if you have the Recaptcha plugin installed for your comment forms. If you activate the recaptcha option from the image verification method it wiped out everything on my page.

    Too bad.

    This form would’ve been perfect.

  279. I don’t think it works for WP 3.0. Everytime I add it the trigger test to a page it wipes out everything and absolutely nothing is displayed. not my text, not my graphics and not my mailer form.

  280. I’ve just returned to this plugin after using contact form 7.0 and I have to say, I missed it! It is so much more user friendly than others out there and I now remember why I donated money for this plugin in the first place.

  281. We supply all kinds of moncler boots,moncler bags,moncler coats,moncler jackets,moncler T-shirt,moncler vest and so on.We have got a good reputation pf our products with top quality and good price.We sincerely look forward to futher cooperation with you for mutual benefits.We are sure that you will find working with us is a pleasant, time-saving and profitable experience. Please feel free to contact us if you have any questions.Our website is http://www.newlyapparel.com.

  282. Nice plugins, thanks for providing it!

  283. I config SMTP for Dagon Design Form Mailer but it not send

    http://hanhtrinhkhampha.uniad.com.vn/?page_id=8

    please help

  284. It appears that the latest update may have broken the functionality of Using SELRECIP and BCC together in the WP version of the plugin.

    If I try to insert the line
    $send_status = mail(fakeaddress@alpine.nospam, $email_subject, $msg, $headers);
    while the plugin is activated, I get an error message that the header is invalid and the plugin disappears.

    If I add the line prior to activating the plugin, the plugin also disappears (with no error message) after hitting the “Update File” button.

  285. Great Plugin and a super Website.

  286. Really good plugin, make generating sitemap easy and looks great

  287. Great plugin, works fine and easy to use

  288. nice article, thank

  289. I think it’s very nice articles, thx

  290. 1636
    Sculley

    I figured it out!

  291. 1635
    Sculley

    Woops…that’s more than one “form” to the site.

  292. 1634
    Sculley

    Am I missing something? Don’t see how to add more than one from to the site.

  293. thanks so much for this plugin!

    It’s perfect in every way except for one; custom edits result in the form not error checking! Which makes the plugin 100% useless if you want to customise the appearance and add 100% labels etc.

    My humble suggestions:

    1. either tell us what php we’ll need to include in the header or
    2. make some more options for designing the forms, like 100% width text labels (not just for textarea boxes)

    thanks!

  294. After much searching for a script, I found this as an excelent way for our users to ask questions in our webstite. Thanks!

  295. 1631
    Christine

    I am getting this error when I submit the form.

    Warning: mail() [function.mail]: SMTP server response: 553 sorry, your mail was administratively denied. (#5.7.1) in D:\Hosting\5883153\html\wp-content\plugins\dd-formmailer\dd-formmailer.php on line 496

    I tried the fixes in the trouble shooting area, but they didn’t work.

  296. I solved the problem which I described in comment 1628. There was a mistake in the email account information in Outlook Express for the email address to which messages are sent via the secure form mailer.

  297. I have the same issue as mat on comment 1359. Auto reply sens to me rather than the user and I cannot figure out why. I searched for the anwser but could not find any in the instructions of comment replies. Could you point me in the proper direction for a solution?

  298. When I attach a document to the secure form mailer and send it, I keep getting this error message: 404: NOT FOUND Your browser cannot find the document corresponding to the URL you typed in.

    Any ideas about how to fix this? Thanks.

  299. Hi,

    Do you know how to use this with Google Analytics?

    How do i track goals through it.

    I am using 5.7.

    Colin

  300. There have been lots of people asking the same question I had – how to redirect different forms to different pages.

    Here’s the answer. The ’success message’ field can handle HTML. So along with your success message, you can put the meta refresh code right in that field, with the URL of your choice.

    Since every form has its own config page, with ’success message’ field, you can customize your redirects in this fashion.

  301. 1625
    Jon Miller

    Fantastic work! I am thinking about using it on my <a href="http://www.guarantorloansonline.co.uk">Guarantor Loans</a> website

  302. very good thismplugin. tanks

  303. These plug ins are awesome, thanks my wordpress is pimped out now

  304. Excellent plug in mate!!!!! Works like a dream!!! Thank You Thank You!!
    see it in action at http://www.easybalirentcar.com I used heaps of the options to create the form and it’s all perfect!!!

  305. 1621
    Kriell Designs

    Yay yay yay I finally got it to work and it is wonderful – thank you so much!!!

  306. 1620
    Dan

    Hi, I installed this widget in order to perform a public vote. I received all the emails, but they do not contain any info as to which box the voters checked. Could anyone please tell me where I can find the data to show me the results of the vote. Many thanks
    Dan

  307. I have the same problem as Helen from ireland. I get “invalid verification code” – but the email goes through any way. The weird thing is I have exactly the same settings on my other website (with different reCaptcha codes) and it works perfectly – http://webcopywriter.com.au. Also, when I go back to no image verification, two emails come through.

  308. Hello, thank you for this great plug-in. How can I changed calendar date to European/Latin style: day, month, year instead of month, day, year? can I also choose different languages for it? lets say I want to have it in Spanish is this possible? thank you, greetings from Sahara Desert!

  309. Hi Matt,

    This is the best form mail plugin. I am happy to use it in my websites. Thanks for your great work.

  310. I have enjoyed and used the form mailer (not WP) a few years ago and stopped using it due to SMTP requirements.

    You have written, for SMTP,

    > (Just search for the reference to the mail() function to see where to add it)

    I wish you make this step simpler or incorporate it in the plugin .. or .. enable support for default emailing setup.

  311. 1615
    Nurkis

    Would it be possible to add a new file upload everytime the current ones is populated? Meaning I have one one file upload available. When i add a few the i get a option to add one more and so on. Or if it would be possible to add several files at once.

    Thank you

  312. Is it possible to enter numeric only instead of text. This is for the phone number field. BTW. Excelent form mailer

  313. Is it possible to sent a message to two different emails via two selrecip drop down boxes?

  314. hey matt,

    ever consider extending the form mailer in to a dynamic business directory? something like using the field names to generate business listings directly from the form input…i think i am gonna work on this when i get a chance.

    thanks again, this plugin continues to amaze me

  315. It would incredible if someone would port this to MODx! This form is amazing.

  316. 1610
    Chris Gory

    First off, thanks for the great script. For whatever reason, it’s aligning on the right hand side of the page, even though it should be on the left. Any ideas?

  317. hi from France.
    i use secure form mailer plugin for wordpress since 2 years for contact. I added the file upload box. you write “this script supports not only attachments, but multiple attachments”. i can’t add multiple files, i get only one file by email. How to do ?
    i use this script : “type=file|class=fmfile|label=Upload|fieldname=fm_upload”
    Must i added a script line for a second file ect. ?
    thank you
    Jean Pierre

  318. 1608
    scott

    Is it possible to sent a message to two different emails via two selrecip drop down boxes?

  319. This plugin is really great. It is doing so many things, while I’m playing COD6 :)

  320. This plug in rocks. I emailed you earlier, but fixed my problem. I am still not able to have .csv formatted files sent to my server although I’ve directed the path i.e. public_html/giveback-files. Am I missing something? I’ll still hunt around on the forums. Love the plugin. I’ll donate!

  321. 1605
    Robson Grant

    Is there a way to change the name of the button of your form mailer form ‘Send Email’ to something else?

  322. Hi I was wondering how to find the name and name/rename the delimted file. I’ve set it to link to the root folder of the blog, but I don’t see anynew file editions. Is there a default name? Thanks-Kyle

  323. I’ve spent a couple of hours digging through all your comments and have not found a satisfactory answer to this.

    I’ve successfully installed 4 different forms on my client’s site, but on the fourth form, I need either checkboxes or radio buttons for people to indicate a yes or no for a list of options.

    I’ve tried this with both check boxes and radio buttons, and each time I can get the form to display properly, but when I look at the email, all the options are merely listed with no indication of a true or false answer.

    Here is an example of the latest option I’m trying (there are 10 of these options):

    type=checkbox|class=fmcheck|label=Bankruptcy|data=fm_bankruptcy,false,false

    What appears on the page is the list of the options with “false” next to the boxes. I tried adding both a Yes and a No box, and while it shows up on the form, the end result in the email is the same. Next I tried adding a comma to comment out the false tag next to the box:

    type=checkbox|class=fmcheck|label=Bankruptcy|data=fm_bankruptcy,,false,false

    And while the “false” tag goes away in the form, the email still simply shows all the fields without indicating which have been checked. This is pretty useless, to say the least.

    I hate to have to use text fields for every entry, because it looks ridiculous to have a long field just to answer yes or no.

    Also, every time I refresh the page to check my code, it sends another confirmation email.

  324. Nice Plugin!
    If I use radio-selection in the form is there a way to send a radio-select specific confirmation mail to the user?

  325. Nevermind! Found it myself. Line breaks… that’s what I get for trying to get technical. LOL

    Again, awesome plug-in! Thanks very much!

  326. Love your plug-in but my latest form is displaying strangely on the checkboxes and select menu.
    Only one checkbox is showing up and no options are listed in the select. I looked through previous comments but didn’t see anything recent that addressed this issue. I did see that issues with these items were addressed in older versions.

    My code is a straight copy of your example:

    
    type=openfieldset|legend=Request A Quote
    type=text|class=fmtext|label=Name|fieldname=fm_name|max=100|req=true
    type=text|class=fmtext|label=Phone|fieldname=fm_phone|max=14|ver=number
    type=text|class=fmtext|label=Zipcode|fieldname=fm_zip|max=10|
    type=text|class=fmtext|label=Email|fieldname=fm_email|max=100|req=true|ver=email
    type=checkbox|class=fmcheck|label=Type of Project|data=fm_p1,Logo Design,false,
    false,fm_p2,Web Design,false,false,fm_p3,Marketing Services,false,false
    type=select|class=fmselect|label=Project Budget|fieldname=fm_budget|req=true|
    data=0-500,500-1500,1500-2500,2500-5000,5000-10,000
    type=text|class=fmtext|label=Website|fieldname=fm_website|max=100|
    type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=700|rows=6|req=true
    type=verify|class=fmverify|label=Verify
    type=closefieldset
    

    If anyone sees something I’m missing, please fill me in! Thanks in advance!

  327. 1599
    ArturTG_PL

    10-19-08 –in v5.6 Added javascript date chooser field.
    check yours version

  328. 1598
    Daan

    The Calander items are not working.
    Not dislayed..

  329. I recently upgraded to WP 2.9.1 and now my forms are not working. When I enter the call code for the form, no data shows up on the page. If you look here: http://intimateexplorations.com/request-a-session/, you’ll see nothing. Any advice?

  330. 1596
    Chris

    Is there a way to show a loading bar or something when they have clicked submit?

    I have it uploading images and need it so the submitter can see that it is uploading.

    Thanks for any help I can get on this

    Chris

  331. 1595
    Chris

    Is there a way to show a loading bar or something when they have clicked submit?

    I have it uploading images and need it the submitter can see that it is uploading.

    Thank for any help I can get on this :)

    Chris

  332. 1594
    Brian Stanfill

    I managed to make the script save attachments when configured to not send an email and to save results to a text file by inserting this new statement:

    if (($save_to_file == TRUE) && ($save_email == FALSE) && ($attach_save == TRUE)) {
    $sndmsg = FALSE;
    $save_attachments = TRUE;}

    After this line:

    if (($save_to_file == TRUE) && ($save_email == FALSE)) {
    $sndmsg = FALSE;}

    And by inserting this new statement:

    if ($save_attachments == TRUE) {
    $attach_path = trim(get_option($this->var_pre . 'attach_path'));
    if (ddfm_save_attachments($attach_save, $attach_path, $attached_files)) {
    $o .= $sent_message;
    $message_sent = TRUE;
    }
    }

    After this block of code:
    if ($sndmsg == TRUE) {...} else {$o .= $sent_message;}

    And by adding this new function near the top of the script with the other functions:

    /* Saves the attachments */
    function ddfm_save_attachments($attach_save, $attach_path, $attachments = false) {if (count($attachments) > 0) {for ($i = 0; $i < count($attachments); $i++) {if (is_file($attachments[$i]['tmpfile'])) {if ($attach_save) {if (!rename($attachments[$i]['tmpfile'], $attach_path . $attachments[$i]['file'])) {echo 'Error saving file. Check your path and permissions. Stopping script.'; exit();}} else {$handle = fopen($attachments[$i]['tmpfile'], 'rb');$f_contents = fread($handle, filesize($attachments[$i]['tmpfile']));$f_contents = chunk_split(base64_encode($f_contents));fclose($handle);}}}}}

  333. 1593
    Brian Stanfill

    I believe this is because the function that saves the uploaded files to the attach_path is defined in:

    function ddfm_send_mail()

    And that function only runs if $sndmsg is TRUE.

    if (($save_to_file == TRUE) && ($save_email == FALSE)) {$sndmsg = FALSE;}

    if ($sndmsg == TRUE) {if (ddfm_send_mail(...)) {...}}

    Because the first test sets $sndmsg to FALSE, the function that includes the code to save the attachments doesn’t run. Correct?

  334. 1592
    Brian Stanfill

    Admin: On my Bluehost server that continues to produce an email error despite passing your recommendation to remove $headers from the mail() function, upload files fails if:
    (1) Save files is TRUE
    (2) Save data to file is TRUE
    (3) Still send email is FALSE

    Upload succeeds but continues to produce the “Error sending message!” error if:
    (1) Save files is TRUE
    (2) Save data to file is TRUE
    (3) Still send email is TRUE

  335. 1591
    Flavio Lima

    Great!!! Very easy.
    In future versions, I would like to see an option to access the CSS from the “Settings”on Wordpress.
    This would help to keep the form matching the looking and feel of the website style.
    Cheers

  336. 1590
    Eric

    Hallo, thanks for the hard work for this plugin. But i`ve got some trouble.
    - the change of the contact page is not showed in the frontend.
    - adding another instance is also not showed in the frontend.

    http://beachvolleyball-leipzig.de/wordpress/impressum

    thanks for ya help.

  337. 1589
    Mike

    Is there any way to reduce the width of the form so it can fin in a narrower space?

  338. @ carlos (comment 1585), carlos seems to have implemented a “reset” button on his form, nice work carlos!

  339. To Viorel (comment 1583 and 1586), why dont you simply put a link to your home page or wherever you want the user to go in to the success message that populates once the user hits submit?

  340. when i click refresh after i sent a message .. a new message is sent .. what is the problem ?

  341. Provando este script ok.

    provando parte dos…

    ok.

  342. 1584
    MT

    There is a bug/missing forward slash (after “lang”) on line 1126 of dd-formailer.php:

    BEFORE: require_once(‘../dd-formmailer/lang’ . get_option($this->var_pre . ‘language’) . ‘.php’);

    AFTER: require_once(WP_PLUGIN_DIR.’/dd-formmailer/lang/’ . get_option($this->var_pre . ‘language’) . ‘.php’);

    ***Also, is there any way you would add support for the “size=”” attribute? I need it to reduce the size for the “input type=’file’”. Thanks.

  343. when i click refresh after i sent a message .. a new message is sent .. what should i do ?

  344. 1582
    MT

    Hi,

    Could you remove the output ” and ” for

    type=fullblock|class=|text=
    type=halfblock|class=|text=

    **It’s a little annoying because the style for “p.fieldwrap” screws up the styling for the block of text… (I’m hacking the plugin to remove this).

  345. 1581
    MT

    Hi, I try the “type=html|text=” but it doesn’t output anything???

    I was trying to put a margin-top on Verify label & input row but would have to make CSS label for selector hack for IE7.

    To that end, is there anyway to put a specific class for each field in the ?

    ————
    The code I’m using is:

    type=html|text=Contact Information
    type=text|class=fmtext|label=Contact Person|fieldname=fm_name|max=100|req=true
    type=text|class=fmtext|label=Business|fieldname=fm_business|max=100
    type=text|class=fmtext|label=Phone|fieldname=fm_phone|max=100|req=true
    type=text|class=fmtext|label=Email|fieldname=fm_email|max=100|req=true|ver=email

    type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=1000|rows=17|req=true

    type=verify|class=verify|label=Verify

  346. Thanks for the plugin, it’s really helpful and very easy to use. Your instructions are very clear and easy to follow. I had my contact form set up in minutes! Tested things out and everything works perfectly. Thank you very much.

  347. Passing Variables to the form using $_REQUEST does not seem to work. Documentation is insufficient to debug!

    It is entirely unclear whether one is able to pass any old value, or just values that have been added to the form, whether the variable has to follow a particular format, ie. “fm_varname”

    An example would help!

  348. 1578
    SM

    Great script and I have used it since version 5.6!

    Even with Captcha, I am having some users abuse the form and they submit multiple times continuously. The problem gets worse if I also allow file uploads or attachments, because in theory someone could hit my server with lots of useless files.

    It would be good to have a “flood control” to stop spam. This could work by limiting the interval that someone with same cookie and IP address can use the form in X minutes.

  349. Awesome plugin, thank you very much. Two questions for anyone who may know.

    First, how could I add a “min” character parameter like the “max” character parameter to limit the text input in to a field?

    Second, same question as Chaz below (comment 1572). Is there a method to embed images in the auto reply feature?

    thanks very much

  350. Firstly i just say big thank. This plugin is very good i can modifier add option of form on my want.

  351. Hi!
    Does the Plugin allows to generate a confirmation page? E.g. the user completely filles in a contact form, after pushing the submit-button the site should redirects to a page in which the results of the form are shown?
    thanks. M

  352. 1574
    eric

    how exactly do i shorten the width of text fields?
    is it ONLY thru CSS?
    Help!

  353. This is a great script, and has served me very well for years now. Thanks very much indeed.

    A very small point: the WordPress Panel for configuration is now called “Settings” (and not Admin, as described in your config instructions).

    May I suggest editing the plugin description to say: “The WordPress plugin version of my secure php form mailer script. Configure by clicking on Settings – DDFM-Main.”

  354. 1572
    Chaz

    Does the text=html|text= work in the auto-reply section as well? I’d like to use this feature to create an auto responder that sends an e-mail with a “coupon” image embedded in it and none of the html I am using is working in the e-mail.

  355. I would like to resize the form. Is there any way to reduce the size of the form?

    Thanks…

  356. 1570
    esther

    I get this meessage in my Wordpresss admin pages when I have installed the pugin and want to edit it:

    Fatal error: Allowed memory size of 36700160 bytes exhausted (tried to allocate 71 bytes) in /home/d/e/deruijternet/www/wp-admin/includes/misc.php on line 278

    What could be the problem?

  357. Trying to implement this on the homepage. Using the PHP call to manually generate the form but can’t seem to find the directions for the form action. Any help here would be appreciated. Thx,

    -Lee

  358. 1568
    Lars

    Hi,

    I am getting an error in the captcha: Captcha can not be shown, because it contains errors.

    I try to use the simple captcha, GD Lib is enabled and running properly on the server, I am running the plugin in Wp, using the latest version of both.

    Many Many Thanks in Advance,
    Lars

  359. Hi,

    I’ve just spent several hours trying to get a form that will work on a new Wordpress site that I am building – and yours is the only one that works and that is customisable. Brilliant!

    Many thanks for providing this form. It was really simple to alter the form fields and has lots of options. I really like the autoresponse facility. This will make a really professional impression on possible customers.

    Thanks again,

    John.

  360. 1566
    scy

    I found the modification code for the Dagon Wordpress plugin so that recaptcha doesn’t give an error in IE for https:// connections.

    replace
    recaptcha_get_html ($pubkey)

    with
    recaptcha_get_html ($pubkey, $error = null, $use_ssl = true)

    worked for me.

  361. very useful plugin…

    seo friendly…

  362. 1564
    Hanks

    Greetings!
    The contact form doesn’t work at all.
    Installation: working
    Configuration: Not working, it does not save any updates.
    Data Submission: validations and sending mail is not working, It redirects to http://www.yoursite.com/contact/

  363. I’m trying to either get new content, such as a PDF download, to come up after a user submits info through the form, or redirect to a new URL after the user submits the form. Any suggestions on how to accomplish this? Thanks much!

  364. The plugin isn’t working for me — it goes to the Wordpres 404 page whenever I submit the form.

  365. Might you consider creating a support forum for this plugin? You have over 100 pages of comments which are very hard to search and it’s virtually impossible to see if a previous issue has been replied to/ or resolved.

    Many thanks.

  366. Hi, I’ve downloaded and integrated your plugin…it’s great….but just wondered why my calendar pop-up isn’t working? Any advice would be hugely appreciated.

  367. Ha, looks like I found what I was looking for!

    You should _seriously_ consider putting this plugin up on the wordpress.org website! You’re hard to find right now.

    Glad I did,
    Dominique

  368. WOW, awesome plugin :)

  369. 1557
    Timo

    This plugin is UNBELIEVABLE. It’s 10 times better than anything else out there and I highly recommend it. Thanks for your hard work!

  370. This is a nice plugin. Thanks

  371. It looks like the verify image is broken with the latest version of wordpress. This seems to be because when you include wp-blog-header.php (line 73 of dd-formmailer.php), there is output occuring. It can be fixed by wrapping line 73 like this:

    
    ob_start();	
    include $wpcp;
    ob_end_clean();
    

  372. Many forms have broken with the latest WP update. Any known incompatibilities??

  373. Thanks a million. Your plugin is pure mastery of usefulness.

  374. 1552
    Jorge Silva

    Hi,

    I’m trying to get this to work but not sure how to troubleshoot. I get no error messages on the client side and everything seems to go through ok but I get no email or anything written to my file.

    I’m using the latest wordpress and am on a shared server. Any help greatly appreciated.

  375. 1551
    Alper

    Thanks for that amazing plugin.
    But it has a problem on radio type inputs (maybe others too, i didnt control it).
    Suppose you have a survey that has choices and all answers are Yes & No. When you put more than one radiobox (lets put 3) all codes for radioboxes will be like this:
    input name=”fm_radio1″ id=”Yes” value=”Yes” type=”radio”
    input name=”fm_radio2″ id=”Yes” value=”Yes” type=”radio”
    input name=”fm_radio3″ id=”Yes” value=”Yes” type=”radio”
    and labels
    label for=”Yes” class=”fmradiolabel”
    label for=”Yes” class=”fmradiolabel”
    label for=”Yes” class=”fmradiolabel”
    it means that when you click 3rd Yes’ Label, First Yes will be answered as Yes.
    To prevent this problem open dd-formmailer.php and go to 1254 th line and find
    $gen .= '<input type="radio"
    on this line, change
    id="' . $data[$i] . '"
    to
    id="' . $item['fieldname']. $data[$i] . '"
    and
    on line 1266, change
    label for="' . $data[$i] . '"
    to
    label for="' . $item['fieldname']. $data[$i] . '"
    so your codes will be like this:
    input name=”fm_radio1Yes” id=”Yes” value=”Yes” type=”radio”
    input name=”fm_radio2Yes” id=”Yes” value=”Yes” type=”radio”
    input name=”fm_radio3Yes” id=”Yes” value=”Yes” type=”radio”
    and labels
    label for=”fm_radio1Yes” class=”fmradiolabel”
    label for=”fm_radio2Yes” class=”fmradiolabel”
    label for=”fm_radio3Yes” class=”fmradiolabel”
    so when you click to 3rd Yes’ Label, then 3rd Yes will be selected.
    Best Regards.

  376. 1550
    Aaron

    Can’t seem to get the manual form code to work, should I be calling the script in action= portion or is the page itself called? I copied and pasted the exact code from the source on the page as described above and it’s not working, the email comes through empty and even if I specify custom message structure, the field names come through but the plugin doesn’t parse them for the form input so they just show up as “fm_name” etc in the email.. Thanks!

  377. 1549
    CJ

    Love your script / plugin… Had very little difficulty making it all work (once I RTFM).

    But I’m still having one last issue… trying to use it on a secure server, but I’m getting a security error due to mixed media. Upon examining which pieces were failing, I find it’s the ReCaptcha code not using the httpS protocol.

    Can this be fixed / solved? Thank you!

  378. I am currently using this plugin for a contact form on a client’s site. I also need to have a second form for submitting certain requests, and the client has requested that the form be in the sidebar.

    I have tried adding the shortcode () to a text widget and the form does not display. I then added the actual form code into a text widget, and the form displays but does not function properly (no error messages for empty fields, no success message, no email sent).

    Is it possible to get the form working in the sidebar? Thanks in advance for any help you can provide.

  379. Thanks for your hard word, this is a great plugin.

  380. I have the plugin installed and configured, but I am not receiving the emails. In fact, it is not acting as it should. It does not display the message saying the email was sent. I have changed email addresses, etc. and cannot make it work. Temporarily I have a form up at http://mahonyconsulting.com/about but I have to take that down soon as I will be finishing the site. I currently have another plugin working that sends the emails to me, but it is lacking alot of features your’s has (including the reCAPTCHA). Please let me know what you think the problem is.

  381. Working good for POP3 accounts. Thanks!

  382. I am having problems finding where to enable the save data to file option. I have searched the admin and the code. Is there someone who can help me out with this?
    Thanks.

  383. I messed up the final question. ,

  384. The problem is that online advertising doesn’t pay enough to support the costs of news reporting. ,

  385. how can i align the form to the left or move the form wherever i want to?

    pls help…..

  386. I’ve noticed a bug. When I use two field names that start out the same, the script does not recognize the longer name when displaying the values.
    For example, if using the field names fm_amount and fm_amounttype, when I later call in the fm_amounttype, instead of showing that value it shows fm_amount’s value with the word “type” appended.

  387. Hi, thanks for the great plugin.

    I use the auto reply function.
    It work great for gmail and other pop3 email. But, if user use yahoo mail, the auto reply message will be empty.

    How should I fix it ?

  388. 1538
    Nate

    This is a really great plugin. Thank you very much!

    I am having a problem with weird lines showing up on the form. There is a horizontal line that extends from the top of each textfield or textarea. It extends about 10 pixels both left and right of the textfield/textarea and looks…ugly…

    Do you know how to get rid of it? I tried changing settings in the .css file, but i couldnt get it to work.

    Thanks for your help!

  389. How customizable is this plugin?

  390. I have it installed, but when i had a short email address, it breaks. Never had a problem before. example: jr@dallas.com

    I have a similar email address, and when i add it in anyway at all to recipients (single, to=, cc=…), the form stops working…

    Any ideas would be greatly appreciated. Thanks!

  391. 1535
    Matthew

    I am getting the message “Errors” when clicking “send email”. This is only happening in the new Firefox 3.5.3. Anybody else having problems with this working in the newest version of Firefox?

    I am using the latest plugin version 5.8.

  392. Having a problem figuring out how to track the form with google analytics. I want to track the number of times a form is submitted. I’m not redirecting the page after the form fill. How can I pass the analytics to the generated content that comes up on submit?

    I went through the other comments and found a few different users with similar needs. This one in particular-

    Nathan:
    “”Do you know if there’s any way to add some Google Analytics code to the “Thank You!” portion of the script? Since it’s not an additional URL I’m not sure how to set this up. Any help is very much appreciated!

    This is what I’m talking about: https://www.google.com/support/analytics/bin/answer.py?answer=26918&hl=en_US “”

    And the reply from ADMIN:
    “”I am familiar with Google Analytics. This can certainly be done. First, find this line in the script:

    $t_out .= $msg_sent;

    Then, you can add the code after it – it just needs to be added to the $t_out variable though. Example:

    $t_out .= ‘add your code here’;

    Just remember, that if you use single quotes around the code, you must escape single quotes inside the string. Likewise if you decide to wrap the string in double quotes. “”

    I can’t find the string “$t_out”, was this lost in a version update??

  393. I have installed this on two separate blog sites lately and both times every single line in the form (including on the button) displays this “DDFM_REQUIREDTAG” before the field name. You can see what I mean here: http://www.hhhsclassof1990.com/contact-info-form

    What can I do to fix this?

  394. im having an issue with the form somehow sizing the height of the page and aligning to the bottom. looks fine in ie but none of the other browsers.

  395. 1531
    RT

    Hi, is there a way to adjust field width?

  396. 1530
    Roger

    Hi,
    I am using your form on a site. I am also trying to use a plugin called “Tippy Title” to allow information on certain keywords in the form to show explanations on ‘hover’. However, I can’t get the code to work in the form, since the plug-in seems to only target the page/post format of the WP site. I was able to get the tag to work, with some CSS, but the end result is the generic yellow boxed text that appears on hover. I want something more significant, but the way this form plug in is added to the site, will not tolerate the use of other plugins. Help?

  397. My form is working perfectly! But I get a message on the form page whenever a message is sent:

    WARNING: RunAsUser for MSP ignored, check group ids (egid=519, want=51) WARNING: RunAsUser for MSP ignored, check group ids (egid=519, want=51)

    Would you have any idea why I get it? What can I fix to get rid of it?

    Thanks!

    Marina

  398. Sorry,

    figured it out, didnt see the dd-formmailer/dd-formmailer.css at the bottom of the lists, at first I thought it was whole lot of language files.

    If it helps anyone this is the part of the css file we edited to change the font colour for the field names:

    form.ddfm legend,
    form.ddfm label,
    form.ddfm label.fmtextlblwide {
    color: #FFFFCC;

    All the best

    Dave

  399. Hi,
    wonderful script, very easy to set up and configure just one thing I am having trouble with and that’s how to set the colour of the label names, ie name, email etc.

    You can see what I mean by visting this page:

    http://www.stamfordartisansguild.co.uk/contact/

    At the moment it is a blueish colour which does not show up very well against the blogs background colour, a pointer in the right direction would be great.

    Otherwise as I asid a really superb plugin

    Best

    Dave

  400. After a form is properly validated and emailed, I need to capture several values from the form, and then pass them along to Paypal to complete a transaction. There don’t seem to be any hooks where I can get some jQuery to run — either as it’s being submitted or after it’s validated.

    About all I’m coming up with now is to use field names to insert arguments into some Javascript wrapped in tags inside the success message. Seems like there ought to be a better way. What am I missing?

    Future enhancements list: allow for some callback functions at key points to allow additional actions or specialized validations….

  401. 1525
    Roger

    Hi,
    We were doing some form revisions to our site, that uses your plug-in for the form in WordPress. We can’t print the page out and I can’t see any CSS or reason why the form would be hidden. Is there an encryption feature to protect user data? Our need is simply for proofing and writing up notes, but I could see where a user could want to see a copy of what they sent printed out. Using WP 2.8.4.

  402. i have read the 2 redirect methods above. does anyone know how i could redirect 2 separate form instances on the same site to two different pages?

    thanks very much

  403. 1523
    Gian

    Amazing plug-in, well done!

  404. Hi there,

    why my previous two comments been deleted here?

    I need help to make the attachment function works! Please check http://hipfiles.com/contact.php why the attachment upload is not working?

    I follow the instruction to add

    
    type=file|class=|label=|fieldname=|[req=true]|[allowed=1,2,3]
    

    to $form_struct. What is wrong?

  405. hi,

    anyone have any suggestions to an ie6/7/8 fix where the select option (the drop down box) box (when clicked) wont expand past the set width wile using the wordpress version of ddfm?

    i have fixed this issue before with other forms but to no avail when using the ddfm script. i really like ddfm by the way, very nice piece of work, hope i can find a workaround to this issue.

  406. I forgot to mention that the file recaptchalib.php which comes with DDFM, is different in size and date from the one that comes with the reCAPTCHA plugin itself.
    DDFM’s recaptchalib.php 29-11-2007 and 9762 bytes.
    reCAPTCHA’s recaptchalib.php 26-05-2009 and 9552 bytes.

    But I’m not putting anymore time into this.
    I’ll keep using one of the workarounds. In other words the file from recaptcha.net.

  407. Hi again,

    So I found a workaround, by specifying the relative path to recaptchalib.php (relative from public_html) instead of just ‘recaptchalib.php’.
    Example : ‘/blog/wp-content/plugins/wp-recaptcha/recaptchalib.php’.
    The reason I said workaround, is because the other blog, on the same physical server and the same account, is using a different workaround. I just checked. And on that blog, I copied the file recaptchalib.php from the wp-recaptcha directory into the dd-formmailer directory. (That was somewhere in July, I forgot about that.)

  408. Hi there,

    I installed DDFM successfully on one blog.
    Now I’m installing DDFM on a second blog, and it refused to show the form. Just the Contact Page title.
    I use the same global key on the other blog, and email and comment protection both work at both blogs.
    I tried almost everything I could think of to resolve the problem the non-geeky way. But no joy.
    So I tried it the geeky way, and dang the script hangs/chokes on line 2186 with the @include_once of the reCAPTCHA lib (see the code snippet below).
    I checked the folder permission of the wp-recaptcha directory, and it is set to 755.
    I removed the @sign from the include_once to see if any errors would show up, but again no joy. Just the Contact Page title showed.
    So I changed the @include_once line to :
    [CODE]if(!include_once(‘recaptchalib.php’) ) {
    echo ‘Can not include recaptchalib.php’;
    }
    [/CODE]
    But the script dies somewhere in there because not even the “Can not include recaptchalib.php” is visible on screen or in the page’s source code.

    I’m lost. Especially because the other WP blog is running on the same server.

    Original lines from the plugin :
    [CODE]2186 @include_once(‘recaptchalib.php’);
    2187 $publickey = get_option(‘ddfm_re_public’);[/CODE]

  409. That’s is what I have looking for. Simple contact for set it up in 1 minute, with no code knowledge.

  410. 1516
    theresa

    Hi I am new to wordpress and came to your site – I will be creating a site that will have separate product details (not a cart simply informational site) where to buy what they can buy and how to register their warranty for separate countries e.g. UK, Spain, Germany etc. so my question is can I create multiple contact forms on multiple pages for that country in that language.
    Hope that makes sense – I will hard code if needed – does that mean I wouldn’t use it as a wordpress plugin?
    By the way – great work!

  411. 1515
    Babs

    How do you style the SUBMIT button. It looks like a CONSTANT in the code. No matter what I do in the style sheet:

    form.ddfm .submit
    {
    color: #797676;
    border: 1px solid #eae9e9;
    margin:0 0 0 0;
    padding:6px;
    background: #ff0000;
    }

    I am still stuck with that ugly gray button on top of the background. How can I get the submit button to be green with white text? and for usability’s sake – on click or hover – the color changes.

  412. Is there any way to modify this script (WP version) so that different “thank you” messages can be displayed, depending on certain elements in the form being filled out?

    For example, I make a form with two checkboxes. When the form is submitted, it sends an email AND:

    if only one or neither box is checked, the page returns the normal thank-you message;

    if BOTH boxes are checked, the form returns a different message.

    Possible? If so how?

  413. Hello,
    This script is great! We use it to send messages of protest from here
    http://agazilos.org/2009/09/02/be-a-muslim-again-or-die/
    (BTW you are more than welcome to send protest messages for these girls). Originally we had one “to” address, one “cc” address and our address as bcc, in order to know how many messages are sent via our page.
    We have received 274 messages since yesterday, but no message after 12.57. On 14.00 we added one more cc address. Even some of our members have sent messages after 14.00, and they got the “Thank you” message, but no bcc message was received. However we received many messages that were sent yesterday – in a case there were 50 messages together. Is there a possibility that the script has crashed? Should we remove some of the addresses? Please reply because the page has many visitors that send messages and we don’t know if these messages reach their destination. And the cause is very serious.

  414. Hey,

    I’ve used this form many times and love it. But I just downloaded the latest version for a client and am using the default form that comes with it, and it looks weird! the fields have a background of black, and are extremely short and high. Can someone take a look and let me know what’s going wrong.

    http://hbelledesign.com/contact-us

    Thanks,
    Krisitna

  415. Trying to set the maximum upload size to a larger size to allow people to upload files by email for business card printing. There is a statement that says “Only applies if the value is lower than the limit set in php.ini” Where would I find that file “php.ini” to up the limit. My server is set to allow large emails.

  416. 1510
    Neateye

    @ Garrett – Huge tanQ, u r a star :D ….

    My form i working , no probs there… just my select option box is a bit wonky… i would like a multi select…
    this is the code:

    type=select|class=fmselect|label=Photo Art Effect|fieldname=fm_photo|multi=true|
    data=#Photo Art,Line Art,Comic Effect,Pop Art (Andy Warhol),Abstract Effect,Luminosity Effect,#Black & White Styles,Colour Splash,Black & White Effect,Sepia Effect

    Can someone pls correct this if u see errors, as it is not showing up on my form… http://www.neateye-photoart.com/upload
    Tanx in advance.

  417. your form doesnt work anyore.. WHY?

  418. help me with my contact page and members subscrition pleaaase!

  419. I have to a form with the dropdown option for recipients.

    The normal form works fine, so php mail is ok.

    But when I trie the dropdown option, the form does not work.

    This is my code I put

    type=selrecip|class=fmselect|label=Naar|data=(kies),IKO-secretariaat,info@iko-hoogstraten.be,Peter Vanhove,peter@vanhove.eu
    type=text|class=fmtext|label=Naam|fieldname=fm_name|max=100|req=true
    type=text|class=fmtext|label=Email|fieldname=fm_email|max=100|req=true|ver=email
    type=text|class=fmtext|label=Onderwerp|fieldname=fm_subject|max=100|req=true
    type=textarea|class=fmtextarea|label=Message|fieldname=fm_message|max=1000|rows=6|req=true

    I also put selrecip in the recipients field.

    The form is generated with the dropdownbox, but mail is not send.

    what’s wrong? pls advice

  420. @Neateye,

    go to your plugins page, click edit under the ddfm plugin, find the appropriate language php file you are using, the top entry should read :

    define(‘DDFM_SUBMITBUTTON’, ‘Send Email’);

    change between the quotes

    this is an awesome plugin with ease of use and great flexibility, just dig around a little more and you will be amazed

  421. is there a way to add an image to the auto reply email feature?

  422. I am running Asterisk 2.8 with CDR ANALYSER installed on it
    i set the database already but still getting this error
    is there anyone that can help me please

    Parse error: syntax error, unexpected T_STRING in /var/www/html/asterisk-stats/lib/defines.php on line 18

    - Donny

  423. I have several instances of the forma but only the first does send emails. i can’t spot the difference and find the error – any ideas?
    greetings Kerstin

  424. Hey first off this is an incredible plugin! Thank you so much! I do have one question. I’m working on this form… http://waysideteen.com/mentor1/needamentor/ would it be possible to add images on the right side without disturbing the form on the left? If so, how? Thanks a ton!
    dustin@endurelife.com

  425. 1501
    Neateye

    Hi, Can someone please tell how i can change the name of the ‘Send Email’ button, i would like it to read ‘Submit Order Form’? Is this possible? Thank you for your time.
    Neateye dbd108@hotmail.com

  426. I have an issue with this plugin…

    Everything works fine and the email and details of the email get sent fine to the admins account…
    However The adding files does not work at all. When sending the file via email it is labled in the email with “[filename].jpg attached” though no image is in the email just text stating theres an attachment.

    I tryed to set it to upload it as well and there was no attachment when it was uploaded.

    This is running on a Windows system though would that affect it at all?

  427. 1499
    Steve

    Please ignore my ‘tip’ about an alternative ‘thank you’ page. It renders the plugin useless as emails are not sent. Oooops! Sorry!

  428. 1498
    Steve

    Hi there.
    Well, what a great plugin you have developed. The ability to create dozens of contact forms and have each one go to a different email address puts it in a class of its own.
    One thing I have done is place the URL of a ‘thank you’ page where the Contact Page URL should go. It means I can have a contact page with formatted text and a picture.
    I have one request though. I have dozens of DDFMs in my settings menu. Is there anyway these can be the names of the people to which the contact form refers to? It would be easier to ID these people as their email addresses change down the track.
    But thank you once again for a fantastic plugin. Ten thumbs up!

  429. 1497
    Ray

    Hi Dagon team,

    I’m trying to figure out how to pass values to the form.

    I read the FAQ section which says change all instances of $_POST to $_REQUEST.

    I’ve did that, but here’s where I need some help.

    Let’s say I have defined a Dagon form on a wordpress page:
    eg. hxxp://example.com/the-form/

    Could I simply pass a variable in the URL?
    eg. hxxp://example.com/the-form?varible=true

    I’ve tried this, but it doesn’t work.

    Any help would be greatly appreciated.

  430. Asa quick hack to prevent file overwrites occuring I added this.

    Line 1899 dd-formailer.php

    
    if(!empty($_FILES[$fs['fieldname']]['name'])) $_FILES[$fs['fieldname']]['name'] = uniqid().'_'.$_FILES[$fs['fieldname']]['name'];
    if ((strtolower($fs['req']) == 'true') && (($_FILES[$fs['fieldname']]['name'] == ""))) { 
    
    ...
    

    This solve the overwrite issue and correctly passes the detination filename to the email hooks.

    Cheers

    buzz

  431. First of all, thanks for this plugin easy to use and works well.

    However I have noticed one flaw, if fileupload instead of email is selected and two users ‘happen’ to upload a file of the same name, the latest submission will overwrite the earliest.

    I’ll be looking at modiying the plugin to correct this by adding a microtime ’stamp’ to the end of the filename or a uniqid()

  432. 1494
    quaziblue

    I just downloaded the plugin and when I insert the instance “lessthansign exclamationpoint dash dash space ddfm1 space dash dash greaterthansign” (it wouldn’t let me post with the actual symbols) in wordpress on my contact page, my entire page disappears. Any help would be appreciated. Thanks.

  433. 1493
    quaziblue