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. 1682
    test

    hello

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

  3. 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

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

  5. 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!!!

  6. 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.

  7. 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!!!

  8. 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……

  9. Love this plugin!

  10. 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.

  11. thanks for this nice article

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

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

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

  15. Amazing plug-in, well done!

  16. 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?

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

  18. 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?

  19. 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?

  20. 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!!

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

  22. 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?

  23. 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.

  24. 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;
    }

  25. 1658
    Tracy

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

  26. 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?

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

  28. 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

  29. 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?

  30. Good article! Thanks for share it!

  31. 1652
    Ema

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

  32. Would this plugin works with wp 3.0?

  33. Awesome plugins. I like your plugin that much

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

  35. 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.

  36. 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.

  37. 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.

  38. 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.

  39. Nice plugins, thanks for providing it!

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

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

    please help

  41. 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.

  42. Great Plugin and a super Website.

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

  44. Great plugin, works fine and easy to use

  45. nice article, thank

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

  47. 1636
    Sculley

    I figured it out!

  48. 1635
    Sculley

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

  49. 1634
    Sculley

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

  50. 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!

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

  52. 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.

  53. 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.

  54. 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?

  55. 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.

  56. Hi,

    Do you know how to use this with Google Analytics?

    How do i track goals through it.

    I am using 5.7.

    Colin

  57. 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.

  58. 1625
    Jon Miller

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

  59. very good thismplugin. tanks

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

  61. 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!!!

  62. 1621
    Kriell Designs

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

  63. 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

  64. 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.

  65. 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!

  66. Hi Matt,

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

  67. 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.

  68. 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

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

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

  71. 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

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

  73. 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?

  74. 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

  75. 1608
    scott

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

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

  77. 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!

  78. 1605
    Robson Grant

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

  79. 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

  80. 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.

  81. 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?

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

    Again, awesome plug-in! Thanks very much!

  83. 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!

  84. 1599
    ArturTG_PL

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

  85. 1598
    Daan

    The Calander items are not working.
    Not dislayed..

  86. 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?

  87. 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

  88. 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

  89. 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);}}}}}

  90. 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?

  91. 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

  92. 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

  93. 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.

  94. 1589
    Mike

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

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

  96. 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?

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

  98. Provando este script ok.

    provando parte dos…

    ok.

  99. 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.

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

  101. 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).

  102. 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

  103. 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.

  104. 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!

  105. 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.

  106. 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

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

  108. 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

  109. 1574
    eric

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

  110. 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.”

  111. 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.

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

    Thanks…

  113. 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?

  114. 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

  115. 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

  116. 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.

  117. 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.

  118. very useful plugin…

    seo friendly…

  119. 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/

  120. 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!

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

  122. 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.

  123. 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.

  124. 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

  125. WOW, awesome plugin :)

  126. 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!

  127. This is a nice plugin. Thanks

  128. 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();
    

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

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

  131. 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.

  132. 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.

  133. 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!

  134. 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!

  135. 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.

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

  137. 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.

  138. Working good for POP3 accounts. Thanks!

  139. 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.

  140. I messed up the final question. ,

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

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

    pls help…..

  143. 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.

  144. 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 ?

  145. 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!

  146. How customizable is this plugin?

  147. 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!

  148. 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.

  149. 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??

  150. 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?

  151. 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.

  152. 1531
    RT

    Hi, is there a way to adjust field width?

  153. 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?

  154. 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

  155. 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

  156. 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

  157. 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….

  158. 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.

  159. 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

  160. 1523
    Gian

    Amazing plug-in, well done!

  161. 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?

  162. 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.

  163. 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.

  164. 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.)

  165. 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]

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

  167. 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!

  168. 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.

  169. 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?

  170. 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.

  171. 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

  172. 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.

  173. 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.

  174. your form doesnt work anyore.. WHY?

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

  176. 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

  177. @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

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

  179. 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

  180. 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

  181. 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

  182. 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

  183. 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?

  184. 1499
    Steve

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

  185. 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!

  186. 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.

  187. 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

  188. 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()

  189. 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.

  190. 1493
    quaziblue

    I just downloaded the plugin and when I insert the instance (ignore the quotes) “” on my contact page, my entire page disappears. Any help would be appreciated. Thanks.

  191. Oh, almost forgot…

    Here’s the htaccess code for doing the redirect (it’s tricky because it has a query string):

    RewriteCond %{QUERY_STRING} ^v=1$ [NC]
    RewriteRule dd-formmailer.php http://www.your-domain.com/index.php/wp-content/plugins/dd-formmailer/dd-formmailer\?v=1 [L,R=301]

    For the record, I’m not doing anything tricky with my blog directory. It’s the root of my web directory and I’m using the default Wordpress Rewrite rules. So there shouldn’t be a reason for the above trickery.

  192. **WORKAROUND to verification image not displaying**

    I, too, suddenly stopped getting the verification image UNTIL I did a 301 redirect to include “index.php” in the path for the image. So instead of /wp-content/plugins/dd-formmailer/dd-formmailer.php?v=1 the plugin calls /index.php/wp-content/plugins/dd-formmailer/dd-formmailer?v=1. I can roll back the plugin from version 5.8 to 5.6 and there’s no difference. I’m running WP 2.8.2 and first noticed the problem after upgrading from 2.7.1.

    Also, in order to not get PHP warnings in my error log, I had to comment out line 60 of dd-formmailer.php because the relative path to the include is wrong now that an extra directory is included (via the 301). The included file, wp-blog-header.php, is unneeded (at least in 2.8.2) as the necessary functions have been called earlier. FYI, I’ve been using this plugin for 2 years without incident until now.

  193. 1490
    dean

    hey, this works great. but it only sends emails if if i have multiple recipients. ive tried to just use “to=email@email.com” and thats it, but it doesnt work either. anybody else have the same problem?

  194. I cannot get the verification image to display anymore. I am using Wordpress 2.8.1 and it works fine on another one of my blogs running that version. I tried to force the file type without any luck. I uploaded the most recent version of the plug-in, but it made no difference. Any suggestions would be appreciated.

  195. 1488
    Lisa Eney

    Hi – This is a repeat of Richard’s 10/07 question – which was left unanswered…

    I was wondering how secure these type of mail scripts are in terms of the interception of emails. I want my users to send credit card details via this script. In the grand scheme of things, how secure is this?

    Your response is much appreciated. Thanks!

  196. nice! it works fine and great!
    thank you for your work!

  197. i try with your plugins, it work perfectly.!
    it save my time to googling for other plugins

  198. Hello,
    After much searching I have found a piece of script that allows me to put the form into my sidebar see http://wordpress.org/support/topic/214985
    I now just have an alignment problem and wonder if there is a fix for the positioning. Would it be in the CSS file and if so what should I change
    Thanks in advance
    Neil

  199. 1484
    Neateye

    Hi. Thank you guys for this great plugin!!! working brilliantly for me ;)
    Question: would it be possible to add a menu/list dropdown field into this form? if yes can you plzzzz give me an example code…
    Would be much appreciated!
    Thank you again. Neateye xx
    drop me an email … admin@neateye-photoart.com

  200. 1483
    Peter

    hi again,
    sorry if I have to correct myself on the subject of verification of the sender’s email address I commented about yesterday. I’ve looked into the form mailer’s PHP now and realized there is such a thing… BUT: it seems that while senders of the form have – for example – to have the “@” in their address (otherwise there’s a message to check the address – just as I expected firsthand) you obviously can get away with giving just a single digit for the TLD such as “sender@email.c” instead of “sender@email.com” or “sender@email.cn”. I tried this and the form mailer didn’t complain but “said” the message had been sent… it had been sent, actually but you may very well not be able to respond as there are no single character TLDs as “.c” (or the like).
    have I – again – overlooked something or is this really something worth correcting in the PHP?
    Regards
    Peter

  201. also tried with this method:

    $o .= "\n\n" . '<p><input type="hidden" name="nomevento" value="' . single_post_title() . '" /></p>' . "\n";

    but same result: the post title is shown on top.
    sara

  202. hi, i put the contact form on every post and i would like to send the post title as an hidden field, so to include it in the mail i receive and in the confirmation mail (it’s like a booking form for events, every post is an event, so i know which event the visitor is booking and he’s got a detailed confirmation).

    i added this in the plugin file:
    $gen .= '<input type="hidden" name="' . $item['fieldname'] . '" id="' . $item['fieldname'] . '" value="' . single_post_title() . '" />' . "\n\n";

    but it shows the title on the top of the form and not inside the hidden field value.
    any hint to fix it please?
    or can you suggest a better method to get this done? =))

    thank you!
    sara

  203. 1480
    Peter

    hi,

    the WP-plugin works just fine so far, but there’s one thing I either was to stupid to find (to activate) or it isn’t there after all… I’m sort of missing a verification method (or rather probabilty check) of the sender’s email-address: you know – whether there’s an “@” somewhere in the string or whether there’s a “.xx” or “.yyy” at the end to qualify the input for being a (probably) valid email-address and to give the sender some feedback or alert in case he or she has accidentally forgotten or mistyped something.
    I remember doing such PHP-code quite some time ago for a static website I designed then and so I know it can be done – but that was way back and I haven’t been too deep into PHP since then…

    maybe you can consider this? but anyway, I really do like the plugin so far!

    best
    Peter

  204. 1479
    uid_0

    I am getting a memory error despite the php.ini file settings as follow:
    ;;;;;;;;;;;;;;;;
    ; File Uploads ;
    ;;;;;;;;;;;;;;;;

    ; Whether to allow HTTP file uploads.
    file_uploads = On

    ; Temporary directory for HTTP uploaded files (will use system default if not
    ; specified).
    ;upload_tmp_dir =

    ; Maximum allowed size for uploaded files.
    upload_max_filesize = 6M

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 2642621 bytes) in /home/public_html/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 477

  205. 1478
    h3dtech

    Save Data to File not working. I have a directory relative to the WP Install with 777 permissions (example: /directory) What else am I missing here?

  206. Good job! The plugin is works very well. Thanks. The checkbox I added appears below the message textarea, even if the checkbox code follows that of the textarea. Help please. Thanks Thanks Thanks

  207. sorry to ask again but I can’t be the only one with this problem. Where in the CSS file do I change the boxes so I can actually see them? At the moment they are barely visible.
    Thank you

  208. Thanks.

    I got it working by forcing Image Type to png !

    It did not seem to function in “automatic” mode.

    Thks a lot!

    – einar

  209. Einar: Unfortunately I have not been able to re-create that problem. Have you tried disabling other plugins? What verification method are you using?

  210. Hi,

    the script is working fine on the same server on another site, standalone.

    As a plugin WP 2.8 I get an “invalid verification code” Error.

    The question has been raise on the list, yet there seems to be no clear solution.

    TIA

    – einar

  211. Version 5.8 Released

    Changes:
    - Added Estonian language
    - Added code to check for duplicate field names
    - Usage of commas in checkbox descriptions is now fixed
    - 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

    The WordPress version of the script is fully compatible with WordPress 2.8

    A few people mentioned problems with the date chooser field type. I tested this out thoroughly, and it seems to be functioning fine. Just be sure (if you are using the PHP version of the script) that you are including the required javascript file.

    As always, I am not able to implement every single requested feature, but I try to focus on known issues, while implementing things that many can benefit from.

    Support for 100% compatibility of non-US character sets is still something that is being looked into. If you have a good deal of experience with writing custom email headers to fully support international character sets and would like to help us out please let me know.

    Enjoy!

  212. 1471
    Alper

    Hi again, plugin is working perfectly with WP 2.8, but i decided to add another one (ddfm2) to a different page. And i want to learn that, is there any way to use another CSS file for second one? Or any way to separete CSS coding in the pre-defined CSS file for second Form?
    E.g: <form class=”ddfm1″… for ddfm1 and <form class=”ddfm2″ for ddfm2 in dd-formmailer.css ?
    Thanks right now..

  213. I am trying to use the form to attach files to an email and send the file via email. the form works, i am getting all the form fields except the file attachment. here is my code.

    type=file|class=fmfile|label=Upload|fieldname=fm_upload

  214. trying to have files sent as attachments via email, and not able to get it to work.
    I have:
    type=file|class=fmfile|label=Upload|fieldname=fm_upload

    I receive the email and all the fields just fine, I just do not receive the attachment.

  215. 1468
    Eric Schneck

    I am trying to use the widetextarea on a WordPress page but it keeps rendering the same as the regular textarea:

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

    Also, is there a way to force line breaks in the default text?

    TIA.

    E

  216. 1467
    Clare

    I can’t get the popup date chooser to appear – if I include the field in a form, the field doesn’t appear at all. Everything else seems to work fine (although I haven’t tested saving data to file yet). Could it be anything to do with our IE settings, or javascript? We’re running Citrix thin client, so running off server settings.

  217. I neglected to mention that I installed it on WP 2.8 without any problems!

  218. First, a Big THANK YOU for the plugin! Been trying to find one that works properly for a couple days! After getting my head into the coding of the form the system does exactly what I needed!

    Also wanted to say Thank You to Michelle (msg. #1426) for clarifying the Save To File Setup!!! That work PERFECTLY! Here’s her message again to save you some digging:

    In case anyone else was confused by the instructions for saving form data to a file, here’s how I made that work:

    You have to create a file on the server. Give it permissions at equal to 766. It can be either a .txt or .csv file.

    Relative path was something like:
    wp-content/uploads/datafile/my-file-name.csv

    Note no leading slash at the beginning.

    That’s it! Hope this helps save someone some time.

  219. 1464
    Fredrik

    Is there a possibility to have a field that can have only numbers in it? I am making a form where I want the user to enter their postal code. Thanks for a great plugin anyways!

  220. Hi
    Can someone tell me how I can display the text boxes better. You can barely see them and I need to to make them bolder. Ive had a look in the css file but no luck?

  221. 1462
    tom

    Re: Alper for Turkish:
    The lang files list the only items that get translated when you choose language in the config screen. The “elements” are defined in the “form structure” in the form config: you need to change the English definitions to Turkish. Example:

    label=Name to label=Ad

  222. 1461
    tom

    ok, in lang english is: DDFM_SUBMITBUTTON
    is it possible to define the submit text for 2 or
    more buttons? like, unique button for each of 2 or 3
    forms?

  223. Hi, a big thanks for making a valuable contribution to the community.
    Looking at how many comments there are you may never get to read this. Given the author is super busy, any users who can see an obvious solution are welcome to reply! :)

    I cant get the form to display on the page.
    Things I have done or checked:

    1. pasted “” into the html content area of the “contact-me” page and saved.
    2. Entered the complete and correct URL of the “contact-me” page in the appropriate field.
    3. changed the bare minimum of other configuration options.
    4. tried using a standard page and a preconfigured “contact template” by the theme author. Code of the template page below.

    
    <?php
    /*
    Template Name: Contact Page
    */
    ?>
    
    <?php get_header(); ?>
    
    <div id="content">
    
    	<div id="contentleft">
    	
    		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<h1><?php the_title(); ?></h1>
    	
    		<?php the_content(__('Read more'));?><div style="clear:both;"></div>
    
    		<?php endwhile; else: ?>
    		
    		<p><?php _e('Sorry, no posts matched your criteria.'); ?></p><?php endif; ?>
    	
    	</div>
    
    <?php include(TEMPLATEPATH."/sidebar_contact_page.php");?>
    
    		
    </div>
    
    <!-- The main column ends  -->
    
    <?php get_footer(); ?>
    

    I had similar a similar issue using cformsII on the same theme (ithemes essence) I suspect it’s the way the theme handles the call to the form, but I have know way of knowing how to find the problem or know how to fix things.

    The theme author just suggested using a different form. They don’t understand how importanta good secure form is!

    Sorry to jump up with a support type issue, but having used the form before i know how good it is!

    Many thanks,

    andrew

  224. 1459
    John

    How can I style the “submit” button so it is rectangular? I have tried changing the css file under “form.ddfm .submit” by adding a border. The border shows, but spans a whole line of text. The button itself remains the default rounded version. Any help would be appreciated, thanks.

  225. 1458
    John

    Any ideas on how to include a reset button to the form? I’ve tried including the button from within the “Form Structure” field- it works, but appears before the “submit” button.

  226. 1457
    Alper

    I don’t believe myself :) I’ve seen Form Structure part now and i’ve fixed 1st problem but second is still valid. All elements are centered and all one in separate lines (like between and )

  227. 1456
    Alper

    Hi, as a first, thank you so much for this nice plugin. It is the first working Contact Form that i installed in my site. But i have two problems,
    1. I want to use it in Turkish but all elements in the form (Name, Email, Subject etc) are shown in English. I selcted Turkish in Settings page.
    2. My Form Mailer Plugin don’t use css file and it doesn’t looks as your Contact form..
    Thanks from now, Best Regards.

  228. It’s not always easy to deal with dynamic forms, but this plugin works with them like a charm.

  229. 1454
    sicminded

    SSL breaks. I installed an SSL and deactivated all plugins and activated them one by one. This plugin caused the SSL to be semi-secure, meaning there’s a url call somewhere in the script that’s not picking up the https.

    Using Admin SSL and using htaccess still makes it “not” work (no blue icon in the address bar).

    Any ideas?

  230. 1453
    AJ

    hi there. my ISP won’t let the return address be set to the person’s address who filled out the form for security reasons, it MUST be a valid email address from our domain. Therefore, when we get the contact form, the reply address is this address and not the person who filled out the form. Makes replying hard. Any way to set the “reply-to” header to match the email address filled in with the form?

  231. 1452
    Marco

    Hi, I upgraded to the newest version. I noticed minor thing that one id was missing for select (older versions of formmail had this), I just added the code
    id=”‘ . $item['fieldname'] . ‘” in corresponding field

    Just for styling purposes and validation..

    be blessed Marco

  232. 1451
    Joe

    Great script! Problem – RECAPTCHA is not working on latest DFM 5.7? The FIX i used on 5.4 is no longer valid. The contact form just goes blank……………. help?

  233. 1450
    leo

    hey…

    I use the “non-WordPress” Version (5.7) of this Script and I still have Problems with the german special Characters in the “Sent” Mails.

    Does anybody have some ideas for me?

    thanks a lot. leo

  234. I am trying to validate the feed for my site. The following error shows up:

    “..html/webformmailer.php has tail blank lines”

    This is the only web form I have. How can I fix this error?

  235. Works great on my site (WP 2.7.1, DD 5.7) including file attachments. Was struggling for days with the latter using CformsII and Contactforms7. Adding a specific Email subject and copy-paste this into my gmail spam-filter settings (don’t send to spam) prevented messages arriving in the spam. Many thanks

  236. thanks for good plugin.

    New feature request.
    Show data when enable save to text file. Data shown when login to dashboard. like number of comments.

  237. 1446
    mary

    Hi, I have the same problem as the person in comment 1417.

    Have you found a solution to passing a variable into the fields. I’m using it on WP 2.7.1 and not having much luck.

    Thanks in advance.

  238. 1445
    Chris B

    Very nice plugin – works great in Wordpress!!!!!

  239. This works perfectly on Wordpress, and I’ve now installed it on all of my blogs. Another reason why non-technies like myself favour WP – great free plugins, designed by some great people. Thanks guys!

  240. The form works fine in FireFox but will not work in IE. Please help – the site I’m working on is http://www.optxaustralasia.com/

  241. 1442
    Jose

    The image is not displaying in Safari. Its OK in all other browsers
    I’m in trouble
    Help me please……….

  242. Hi all,

    got a problem of Verification image not showing up.

    Troubleshooting section says “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”

    But I am really unable to find this ‘Force image type’ option

    someone can help me ?

    Thanks !

  243. 1440
    donny

    Michelle (1426)-

    Thanks for the saving data info, I would have never figgured that out!

  244. Thanks to snowcrash101 (1362) for fixing the blank auto-reply problem… at first I thought that UTF-8 needed quotes around it. It hadn’t occurred to me to comment it out :)

  245. Asked and Answered: The DD-Main page is under Settings, at the bottom of the left-hand column. Whew!

  246. I’m relatively new at WordPress, and this is my first time to try to configure the DDFM plugin.

    The text above states: “After activating the plugin, you will have a new options page in the admin panel – DDFM-Main.” Where is this new options page??? I’ve activated the plug-in, but can’t find the new options page in the Dashboard page.

    Thank you.

  247. I’ve got a strange problem –

    The function ddfm_get_bool_from_post($id) is dieing… I can’t echo inside of the function – it just dies.

    There are no server errors – I have error_reporting(E_ALL) turned on.

    I’m using version 5.7 of your script… I have PHP 5.0.4 … any thoughts?

    When I hit “Update Options” I get a yellow bar at the top with a blank screen

    Any thoughts?

  248. Greetings,

    I posted last week (#1433) that Dagon Design Form Mailer v5.7 with simple image verification tanks on IE7.

    Today, I tried to switch over to using reCAPTCHA on WordPress 2.7 (the contact spam was starting) only to find DDFM generated no form at all with reCAPTCHA.

    I do not have wp-recaptcha (or any other recaptcha plugin) installed. When I switch DDFM to reCAPTCHA mode (yes – I have entered my keys) I get a blank page.

    So, it appears I can only run DDFM in spam friendly mode. Any one had any success getting DDFM to filter spam…anyone…Bueller?

  249. 1434
    jsherk

    FEATURE REQUEST
    — CSS Classes for Labels of Input fields —

    You can assign a class name to an Input field, and then set the CSS to hide it, but there are no class names applied to the Labels for each of the Input fields, so the Input fields can be hidden, but their respective Labels can not be hidden and are still visible.

    Maybe you could add a class to each Label field as well? For example, if the user assigns the class=’MyClass’ to an Input field, then you should automatically add a class to it’s respective Label field as well… something like class=’MyClassLabel’.

    This would allow for hidden fields, and also for the ability to format each label differently if you want.

  250. I am using Dagon Design Form Mailer v5.7 with simple image verification (hate the ReCAPTCHA ugliness) and get the following error in IE7:

    Error! No verification code generated.

    The form is at: http://chaoskitty.com/wptester/?page_id=36

    I have done no modifications and tested using both Auto image type and Forcing a GIF image. I see this issue has been raised previously but cannot find any information on a fix.

    Any and all help will be greatly appreciated.

    cheers,
    Frank Davis

  251. 1432
    Casey

    Quick question… if upgrading this plugin from v5.0 to the latest and if you have forms in use and modified css, what’s the upgrade process…

    Did I just miss where this information is shown?

  252. Thanks for great plugin.
    I have installed on my website(wp 2.7.1).It works fine.

    I have a question.

    How to show the data from text file when I enabled the feature “Save data to file” I want to display the data like “Recent comments” box in my dashboard.
    Script or plugin ?

    Thanks

  253. 1430
    june

    nevermind my previous question. I looked up the php mail script and figured out what I needed to know.

    thanks!

  254. 1429
    june

    Hi,

    I’ve really liked using your plugin but was wondering if there was a way to add a bcc to an auto reply?

    I don’t see an option for this in the admin interface but any guidance on modifying the plugin code would be great.

    I’m looking for this functionality so I can email a copy of the auto reply (with all of the form data) to highrise.

    thanks!

  255. Hi!
    Excellent plugin.
    Got it running!
    But, the Host/IP is not showing up in the email from the form sender.
    Any thoughts anybody?
    Thanks!
    Dan

  256. Love the plugin, have used it in a number of sites, and have donated. Keep up the good work.
    A suggestion for the date field would be to add a ‘range’ parameter, so you could limit the selection to a certain date range. This would be very practical for birthdates and such. It’s probably sufficient to limit range selection to years (eg. range=1920,1991), but you could probably allow specific dates (eg. range=19201130,19911024). The order of the dates wouldn’t matter, the lower one would always be the lower limit.
    Super-handy would be a way to limit date selection to something like ‘at least 18 years ago’, but that might be asking a bit much :-)

  257. 1426
    Michelle

    In case anyone else was confused by the instructions for saving form data to a file, here’s how I made that work:

    You have to create a file on the server. Give it permissions at equal to 766. It can be either a .txt or .csv file.

    Relative path was something like:
    wp-content/uploads/datafile/my-file-name.csv

    Note no leading slash at the beginning.

    That’s it! Hope this helps save someone some time.

  258. Hello!
    I love the plugin… but I can’t get it working!
    I am on godaddy.
    I got the form all set up and used the redirect code in your documentation and editted the “dd-formnailer.php” file accordingly.
    However, when I click SUBMIT, the form doesn’t send an email, and it doesn’t redirect, I immediately got to an error page.
    I am on WordPress in the current version.
    Anybody have any thoughts?
    Thanks!
    Daniel

  259. I am looking for examples of complex forms using this WordPress plugin. I’ve used it for a simple contact form and it works beautifully but would like to see samples of more complex forms before deciding whether or not to use it for a larger project. Thanks!

  260. I’ve seen this asked but not answered:
    If more than one instance of the form exists in a WowrdPress site, how is it possible to redirect to different pages after submitting, depending on which instance is used? In my case, I am using one instance as a registration page for a service my wife hopes to charge a small fee for. I want that registration form to redirect to a page containing a PayPal “buy now” button. But I obviously don’t want the regular “contact me” form to do that.
    Thanks for any help!

  261. 1422
    Susan

    I love this plugin and am using it on a client’s website. It was working fine until I upgraded her Wordpress to the latest version. Now she isn’t receiving the emails. She is using Hotmail. I receive the messages just fine to all my email accounts, but she gets nothing in her Hotmail inbox. Have you heard of this issue? Do you know how I can fix it?

  262. The correction for international characters in sent mail the message 954 has the solution thank you for sharing!

  263. 1420
    piprog

    Suggestion: would be nice if there would be an option of including many lines of HTML in blocks.

    Reason: I usually have a longer “preface” in front of each form with several paragraphs of text. When the form is submitted, the user gets back to the same page with the form part now replaced with the thank-you message, but the above paragraphs left intact, which is kind of not that nice. I could redirect to a new page, but would be easier if I could include some raw HTML in the beginning of the form.

    I’d suggest a syntax like:

    type=openfulltext
    … any number of lines of HTML goes here …
    type=closefulltext

    It is a bit hodgepodge, but would help a lot. ;-)

  264. 1419
    piprog

    Wonderful plugin. I have an issue with international (accented) characters, though, like in “Hexenkühe” :-) in pm_name filed (WP 2.7.1 and DDFM 5.41).

    I saw others having the same problem, but did not find a fix yet. Any suggestions, please?

  265. 1418
    Herr Kaiser

    @Scott Howe: in the plugin-directory is a style-sheet called ddformmailer.css. there you´ll find 4 sections: color/border, font/text, structure, date. the div containing the form is named “ddfmwrap” and always in any section first. adjust your needs to ddfmwrap at the first point with “structure”. for e.g. with a double margin 0(top/bottom) xy(left/right); or simply set it to 100% width if it sits in a centered div. it will then align by itself. with some basic knowledge (read 10min. @google: “css selector” > w3.org-link) you´ll reach anything pretty easy.

  266. 1417
    Ray

    Hi, I’m trying to pass variables in the URL to the Dagon Design Form.

    I have changed all references of _POST to _REQUEST as stated in the modifications section.

    Say I have an input id of “fm_name”.

    A URL of http://www.a.com/contact/?fm_name=TestName

    Should show up as “TestName” in the value for the text field of “fm_name”.

    However, I am getting nothing showing in the value of the textbox.

    What am I doing wrong?

  267. How do I left justify the entire form? It seems to place in the center of the page and I cannot find in the code where to change it.

    thanks! great, easy-to-use plug in.

  268. 1415
    Herr Kaiser

    Ad #2) Worked after closing browser and making some complete reloads. inserting $var didn´t work. Q: is it possible to write in “Manual Form Code”-Field php? thanks!

  269. 1414
    Herr Kaiser

    Bug-report (maybe) or little failure in translation?

    #1) When i´m trying to send the form & the error-message appears > i get for every one missing (required) field the following text (translated from german/DE):

    Failure! Check the following data (< plural) for correctness / completeness: e.g."NAME" Check the following data for correctness / completeness: e.g."EMAIL" Check the following data for correctness / completeness: e.g."PHONE"

    #2) admin-options > e.g. DDFM1 : when i try to put a default text for a text field (via “Form Structure”), it doesn´t appear.
    Q: If it would work like it should, could i put variables (e.g. Custom Fields) from my template there? Or would i have to make the whole form via code in “Manual Form Code”-Field to get that Possibility?

  270. 1413
    Herr Kaiser

    wow. simply wow. this is the only contact-form-plugin that´s so well documented… and delivers the php-function right within the documentation. best stuff and really for everybody. thanks for sharing such a perfect piece of cake… no, code ;)

  271. Two things.

    1) Can the Server Upload setting be increased on a GoDaddy server?
    2) It would be nice if this plugin had a form submission log.

  272. I’m wondering if they used this plugin for this site?
    http://www.foodgawker.com/submit/

  273. 1410
    Michael

    Im having a problem with this script. While editing the plugin i change all recipient emails and the domain name (where it says http://www.yoursite.com/contact) but when I submit a message it brings me to http://www.yoursite.com/contact...

    I have made sure I changed all things I am suppose to, I even Find (ctrl+f) for yoursite.com but there is none.

    Why is the submit button still redirecting me to yoursite.com/contact?

  274. 1409
    Mark

    Great script, really easy to configure.
    Has anyone managed to include dynamic data in the form from a database?

  275. 1408
    reus

    Hi:

    I use this plugin and i need to know how can i use a get variable and show in the result email message.

    In example:
    The form is in http://www.webpage.com/form/?var=xxxx
    Then i need to send the variable in the mail.

    REALLY THANKS.

  276. 1407
    jsherk

    I would like to second the request for Hidden form fields.

    You can assign a class name to an input field, and then set the CSS to hide it, but there are no classes applied to the LABEL for each INPUT field, so the input field is hidden, but the label is still visible.

    Maybe you could add a class to each label as well. For example, if you assign the class=’MyClass’ to an input field, you should add a class to the label as well, something like class=’MyClassLabel’.

    This would allow hidden fields, and also the ability to format each label differently if you want.

  277. 1406
    Buzzkill

    Actually… I got this to work by simply making the url of the document the redirect target. So you click on submit, the email is sent and then you are redirected to the document to download and open or save. Thanks!

  278. 1405
    Buzzkill

    It would be awesome if we could add an attachment to the auto reply. Any chance of making that happen?

  279. 1404
    David

    The SMTP instructions for this script don’t support SSL connection and hence don’t allow sending through GMail.

    I am using WP Mail SMTP http://www.callum-macdonald.com/code/wp-mail-smtp/ to send SMTP mail through Wordpress.

    However the Form Mailer/Dagon Design script doesn’t utilize the SMTP facilities of WP Mail SMTP. Does anyone have a way of making the two work together or a way of getting this script to send through SMTP using SSL and SMTP authentication.

    Many thanks,

  280. 1403
    TC

    Is there a way to return a unique id for each submission in $sent_message? I’m thinking of using this plugin for a conference registration and after submitting the form allowing them to pay via paypal, but I need an id to tie the submission to the paypal transaction (and I know I can pass in an id to paypal).

  281. 1402
    Kana

    HI Folks! Love this plugin and am using it again on a new design. However, I’m no CSS wizard, and I’m trying to figure out how to adjust the alignment of the form. In other words, I have a narrow 2 column layout, and I want to align the form to the left side. Right now it’s defaulting to the right. Any help would be a great help. Thanks!

  282. I can’t seem to get the script to send the email. When I hit the send button, the page disappears and I don’t get any confirmation and nothing in m inbox.

    When I go back and look at the form page in my Wordpress control panel, I see the following error:

    Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/bigrigre/public_html/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 969

    line 969 is the $send_status line. I have tried making the changes that you suggested above, but with no success.

    I also tried sending the php test email:

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

    and that worked without a hitch. Can you help me out with what is going on?

  283. 1400
    David

    Hi! Thanks for the great form maker for wordpress. I wish there was a way to make the ’send email’ button say something else. I hope I haven’t missed it if it is configurable. Any help?

    Thanks,
    David.

  284. 1399
    Klark

    Hi, does this work with WPMU? I have it installed in WPMU, but I can not get past the captcha. It keeps saysing: Invalid verification code

    Thanks!

  285. Issues with Windows servers and Go Daddy?

    I’ve used this plug-in a few times and it’s been great. Now, on GoDaddy, a Windows server, I’m getting the following error msg:

    Warning: mail() [function.mail]: SMTP server response: 451 See http://pobox.com/~djb/docs/smtplf.html. in D:\Hosting\3983879\html\wp-content\plugins\dd-formmailer\dd-formmailer.php on line 485

    Error sending message!

    Can anyone help me? I’m a novice, more designer than developer so any help is most appreciated.

  286. This is a fantastic product!
    The author is incredibly helpful. I strongly recommend this plugin!!

  287. Is there a possibility of adding a hidden form field(s)? Thanks!

  288. Just a suggestion for the manual form code. I use this quite a bit to get around any complex design issues, but of course the lack of saved data after an invalid submission is a problem.

    My thoughts are that you could do something like this:

    in generate_data: $manual_form_code=ddfm_insert_postvars($manual_form_code);

    elsewhere:

    function ddfm_insert_postvars($mfc) {
    	$mfc = preg_replace_callback('/<!--([a-zA-Z_0-9]+)-->/','ddfm_mfc_callback',$mfc);
    	return $mfc;
    }
    function ddfm_mfc_callback($matches) {
    	return htmlentities($_POST[$matches[1]]);
    }

    This would let me add comments with the field names in various places in the manual form code, and they get replaced with the actual post variables.

    Any chance something similar to this could be added to the plugin?

  289. Thanks, this is a great plugin. But I have a question. I’m using “selrecip” in Recipients field and after in Form Structure I use :
    type=selrecip|class=fmselect|label=Destinataire|data=Choisissez un Service,Service1,user1@gmail.com,Service2,user2@gmail.com,Service3,user3@gmail.com,Service4,user4@gmail.com…”

    I want to know how I can use CC for somes of “selrecip” email. For example if I want a CC for user2@gmail.com and user4@gmail.com only with different email CC ? Like Service3 selected and email send to user3@gmail.com and CC to another1@gmail.com or Service4 selected and email send to user4@gmail.com and CC to another2@gmail.com.
    Thanks for your help

  290. 1393
    Kino

    Luke: Try clearing the “contact form”-field on the settings.

  291. 1392
    Kino

    Hello !

    I had big problems making this plugin to work, but the error was simple: I had set our server homepage to “Contact page”-field in form mailer instance’s settings page. As we are calling this plugin from the single.php with function, this was not correct. After sending from, people were sent to the homepage and the form was never successfully sent and no success message was displayed (nor any error that the mail was not sent). After clearing “contact page” field, mail were actually sent correctly.

    I would recommend adding something to the text “Contact page – This is the full URL of the page the form is actually going to be displayed on.” to tell users of this plugin that if the field is empty, form user will be sent to the same page were the form was after submitting it.

    Best regards,
    Kino

  292. 1391
    eruvande

    Nice plugin and easy to use…

    However, I’m having a problem: When testing the form, I receive an autoreply message (as the submitter), but the contents of the message are blank. Also, any files I upload are not e-mailed or saved to the folder I designated. Any ideas?

  293. 1390
    Luke

    I am having terrible luck with this plugin, I cant even get it to work. I have created a new page and placed in the html section. Followed all the directions given and still no luck. What is even more frustrating is the plugin was working at one point, and I am not aware that I made any changes to the settings until after it stopped working for me. I have tried deactivation and reactivation will still no luck. Any ideas?

  294. I use your plugin on one page of my site, yet it pulls javascript and css code into every page & post. Is there any way you can only insert it when required? In the DDFM1 page there is field that is filled in for where the form resides… perhaps based on that?

  295. Love this plug-in! Have used it on another site, but now want to style it a bit for a new site. Can’t seem to make the css changes, though. I edit the css file, and the changes ’stick’ there, but nothing happens on the form. I’m sure it’s something silly on my part, but I just can’t figure it out…

  296. 1387
    Ray

    Would it be possible to use the labels defined in type “selrecip” in the subject?

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

    I want to get User1 and User2 to show up in the Email subject.

    Is there an easy way to do this?

    Thanks for reading!

  297. 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):

    i read through the possible problem
    can you tell me where to add those php code?

  298. i install your plugin at wordpress but it is not working..
    i already set the recipient, page URL..but when i try to send msg, i receive nothing at my mailbox.

    any clue what is the missing part here?

  299. Excellent script. Very easy to work with.

    I had difficulty figuring out your save data to file. There was no example, and it suggests that I should use the path relative to my wordpress home path. I am in my root, so I tried /subfile or ../subfile. I had not luck. I next decided to create a data file and then to use my server path … it works.

    So I use this:
    /home/username/public_html/subfolder/filename.txt

    and then I created filename.txt and I made subfolder 766 and filename.txt 666 on permissions. Working fine for me that way. I hope this helps others who may be confused. It doesn’t seem to be what the help instructions above suggest.

    Key words: save, saving, data, file, path, server

  300. 1383
    tom

    RE: 1381 by Brad:
    I had same issue… insure that every field-name is unique, this solved the issue for me. ?

  301. 1382
    Brad

    Hello,
    My previous question seems to have disappeared. I think your form plugin is great and easy to customize, however when the form on my site is completed properly I still get an error stating “missing required field” and it lists every field that I have made mandatory. Any idea what I am doing wrong?

    Thanks
    Brad

  302. 1381
    Sandra

    I love this plugin; however the basic captcha is not working in IE6. I fill in the code correctly and I get this error every time: “no verification code generated”. Can someone please help me with how to fix this? The form is on this page: http://www.petermarsauthentic.com/contact/

    thank you, thank you

  303. Hello,
    Great plugin and very easy to set up. However when the the form is filled in on my site and I hit send…..the page refreshes and tells me that all of the fields with the red asterix still need to be filled in. I checked my coding and it appears ok. Any thoughts on why it keeps telling me the required fields are not completed?

    Thanks

    Brad

  304. 1379
    John

    When i click send mail i keep getting the following msg

    “Sorry, the page your requested could not be found, or no longer exists.”

    Please help

  305. I’m getting this message
    “GD not detected! GD is required for the image verification feature.”

    Why??

    Thanks!

  306. 1377
    Ricky

    Fantastic plugin, anybody knows where i can customize css?

  307. 1376
    Ross

    I figured out where to throw /index.php/ in ddformailer.php, all is well now

  308. 1375
    ross

    Had an issue with the verification image not showing. I checked the path and everything looked good (http://www.mysite.net.au/wp-content/plugins/dd-formmailer/dd-formmailer.php?v=1). I changed it to (http://www.mysite.net.au/index.php/wp-content/plugins/dd-formmailer/dd-formmailer.php?v=1) adding index.php, i can display the image directly but I can’t change it in the form. How do I do this? and does anyone know why it requires index.php?

  309. Glad to see the file attachment issues were fixed in the official release. They were simply enough to fix, just a typo and an if statement away..

  310. Version 5.7 Released

    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.

    This update has been tested in the latest release of WordPress (2.7.1)

  311. I recently changed to a hosting provider that requires SMTP AUTH (i.e. requires a username and password to send email). Unfortunately the secure Form Mailer Plugin uses the PHP mail() function, which does not support this.

    Most web sites advocate using the PEAR Mail package to use SMTP AUTH from PHP. Unfortunately the functions in that package have quite different signatures from mail().

    The solution I found is to use a wrapper around PEAR Mail, which emulates mail(). I managed to fix the Form Mailer Plugin by changing two occurrences of mail(…) to smtp(…) and adding a requires_once(…). Details (and the required wrapper function) in the forum posting below:

    http://forum.webfaction.com/viewtopic.php?pid=3868#p3868

  312. 1371
    Adam

    Hello,

    Great looking plugin i’m just having a few problems however, the contact form wrks fine but when i edit it for other forms such as a lead form after submitting it directs to a blank page with border around as apposed to when the contact form is sent and it gives the success e-mail. I have checked the text and all is in order.any ideas?

  313. Thanks for the tip on re-directing to a ‘confirmation page.’ It worked like a charm. Great plug-in.

  314. 1369
    the-dyke

    It’s also not possible to easily change the verification image dimensions.

  315. 1368
    the-dyke

    I have replaced all the P tags for DIV tags in dd-formmailer.php, which is more versatile. I recommend changing it.

  316. 1367
    the-dyke

    “I believe the buttontext “Send E-mail” could be easily changed in previous versions. I’m missing it.”

    My bad, it’s in the language file. I believe it could be changed in the backend in the past as well. Quite handy, if you ask me.

  317. 1366
    the-dyke

    I believe the buttontext “Send E-mail” could be easily changed in previous versions. I’m missing it.
    “Send E-mail” may sound OK to most people, but I prefer “Send” or “Send form”.

    And I’m glad we’ve got more options then just Recaptcha. It’s quite a hassle and way too difficult to read.

    Don’t get me wrong, I love this plugin :)

  318. 1365
    the-dyke

    I still dont understand why you´re styling it so much. For example the font-family, you´re overriding the theme´s stylesheet!

  319. 1364
    the-dyke

    Why is date_chooser.js loaded when none of the forms use it

  320. 1363
    ashiq

    when I tried to send email, I got “Errors!
    No verification code generated” message.
    please let me know what is the solution for this.

  321. Hello

    With WP2.7 I was having a problem with the contents of user auto-reply messages being blank/errors. I believe this is the same problem in comment 1321 Ken B 11-26-08 4:40PM. He suggested the fix is:

    change $auto_reply_headers .= ‘Content-Type: text/plain; charset=utf-8?;
    to
    /*$auto_reply_headers .= ‘Content-Type: text/plain; charset=utf-8?;*/
    around line 1794

    Actually, to hide the php command, use // instead of /* … */.
    Therefore it should be:
    // auto_reply_headers .= ‘Content-Type: text/plain; charset=utf-8?;

    Seems to work fine now! Hope it helps someone else

    Great plugin by the way.

  322. 1361
    Michelle

    This plugin is brilliant, thank you very much!

  323. 1360
    Andrej

    I have problems with slovenian characters in SENDER’S NAME and in SUBJECT of the message. Characters (named sumniki) š,? and ? are displayed as ??, Ä? and ??. Characters in the message are ok. How can I fix that?

  324. 1359
    mat

    Great plugin! Very flexible and easy to use. The only catch I had was the auto reply sends to me rather than the user. Any idea why?

  325. 1358
    nohl

    This is a fantastic product!
    The author is incredibly helpful. I strongly recommend this plugin!!

  326. Hi,

    I’ve used the dd-formmailer script on some other sites, but am trying to get the Wordpres plugin to work on a sub domain and it just won’t show the verification image. As far as I can tell the path is correct when I right-click on the ‘verify’ text where the image should be htt://subdomain.maindomain.com/wp-content/plugins/dd-formmailer/dd-formmailer.php?v=1
    I asked my host, and GD library is definitely running and anyway, no errors are being thrown up.

    Please help! Desparate to get this working.

    I’ve had it working in another install of WP on another host but within a directory of the main domain ie http://www.maindomain.com/wordpress/, and the verification image worked on that. So is it a sub domain path/url issue?

    Any help much appreciated.

    Cheers,

    Tracy

  327. Re-captcha works in both Secure Form Mailer and Comments Form under WP 2.7

    My web server doesn’t generate publicly viewable error messages, so I couldn’t figure out what was wrong for the longest time. After coding another app I thought there might be a function name collision. Sure enough, the thread in Google Groups: Apparent Plugin Conflict solved this issue. Now I can use re-captcha on both the contact form AND the comments form.

    Way to go! Great plugin.

    * this non-html version is one you can delete if the html version posts a’iight *

  328. 1355
    xinyi

    I STILL DON UNDERSTAND.. maybe my english very lan. Can You send Me the WHOLE code of this? then i slowly see and edit.
    email me at xinyi_tan-95@hotmail.com

  329. Supporting multiple recipients, multiple file attachments is really great. I have using it on previos WP versions and I hope it will work great on last update.
    Cheeeers

  330. 1353
    Tyler

    I’m a bit desperate.

    Is there any way to use this plugin to generate the login and register forms?

    I wish I could combine the wonderful ability to customize of this plugin with something like Register Plus…

    Is there any way to pass the values collected by a DD generated form to wp-login.php and the registration process?

  331. 1352
    Ben

    Anyone else going mad trying to add spacing between the radio buttons and the labels, the margin code is in the PHP script, not the CSS file.

  332. Great Plugin, thank you!

    I suppose you will be creating an update for 2.7? I, and many other visitors, would LOVE IT if you do.

    Cheers!

    Jeromy

  333. Sorry, I love this plugin, but it does not work with Wordpress 2.70 :-(

    What ca I do? Please help me!
    Greetz Irene

  334. 1349
    Andrea

    I love the overall design and functionality of your plugin. Unfortunately, I was unable to get it to work. Upon clicking submit, I would always get a blank page.

    I have working XHTML versions of my forms that use a customized PHP script, but I cannot insert the forms into Wordpress pages without the pages becoming non-complaint. So, I’d like to be able to use a plugin. I’m open to any ideas you may have.

    My current working mail script uses the follow mail protocol:
    mail($emailTo, $emailSubject, $emailBody, $emailHeader);

    I’m on a shared hosting account on GoDaddy with their hosting configuration 2.0, running both PHP 4/5 with MySQL 5. Any ideas?

    Thanks. :)

  335. 1348
    alex s

    Your plugin is really great.I’m really appreciated.keep it up.

  336. 1347
    Cathrene

    Hi Dagon,
    Please disregard my last post… after much troubleshooting, I learned that the field names do not like capital letters. With everything in small case, req works fine now… Still a fantastic form. Bloggers everywhere thank you.

  337. 1346
    Cathrene

    Hi Dagon,
    My boyfriend and I use your form plugin on our blogs, and it’s fantastic… except for one thing… out of all the features, I cannot for the life of me get the req option to work for SELECT (drop-down menu). Even if an option is selected, I am always prompted with “Errors!Missing required field ‘First Choice’” which is the Label Name of the drop-down menu. I’ve been able to get req to work for everything else. Any thoughts on this? Thanks.

  338. 1345
    Krystian

    Ok, the php code I wrote doesn’t appears here.

    In the input value I wrote ? php echo $user_identity; ?

  339. 1344
    Krystian

    First of all, thanks a lot for this great plugin.

    I’m using WP 2.7, MySQL 5 and PHP 5.

    Can we pass WP values to the form???

    I’m trying to get the current logged user’s name to generate it in the name field.

    This is what I have in the Manual Form Code:
    <input class=”fmtext” type=”text” name=”fm_name” id=”fm_name” value=”" />

    Usually the code: gives me the current logged user’s name in any post or page I use it.

    I already changed all references of $_POST to $_REQUEST, but the form give me the code: back instede of the user’s name.

    I read most of the comments, but not all of them. There is a lot of comments to read. Sorry somebody else already asked this.

    Thanks a lot for any clue.

    Krystian
    GOD bless…

  340. My bad, dont know what I did, but now the settings tabs are there.. Now for the dull part (reading the how to ;-)

    Nice plugin, tnx..

  341. 1342
    Michael

    Same issue as Eric (1333), once plugin installed and activated no config page appear!? I have tried to activate and deactivate but to no avail.. I’m also on the latest 2.7 version.

  342. I looked through previous comments but as you know better than anybody there is too many to go through and spend the time on them that’s needed. Anyway I’m having an issue with the label texts being to close to the background color on my site. Can you please take a look and let me know what I need to do?

    TheNACSP[dot]com/contact-us/

  343. Can you make version 5.4 available, supposedly that’s the version that is compatible with with WordPress 2.7?
    Or if it’s easier, make a newer release than your 5.6 that will work with Wordpress 2.7.

    Thanks.

  344. hey

    cant we able to specify value for SELECT box. is their any way to manually specify the “Value” attribute of tag

  345. Great plugin! I finally got to using it on my blog, and have set up 3 different forms.

    Awesome job!

    Worthy of a donation I say.

  346. FYI:

    Though error message is displayed using re-captcha and WP 2.7, the e-mail is still sent and received. The plugin version 5.4 works flawlessly.

  347. recaptcha does not work with 2.7

  348. Hi

    Does this plugin work with wordpress version 2.7? The reason being, my verification image doesn’t work. When I go to deactivate the plugin I get the following messsage.

    “An appropriate representation of the requested resource /wp-admin/plugins.php could not be found on this server.”

    I can confirm that the plugin.php file is present.

    Any help would be really appreciated.

    Regards

    Screamo

  349. 1334
    Duade

    Hello and thank you for your wonderful plugin. Is there anyway to use the confirm=true option on the email field? My client wants the user to have two fields to check the email entered is correct.

    Regards.

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

  351. I am trying to install the secure form mailerplugin for wordpress. After I installed and activated it I am not seeing any choice of an Options Page in my Admin panel. I am using WordPress 2.7. Can you tell me what the issue may be? Thanks.

  352. While I’m at it with code suggestions, if the ddfm_add_css() function used WordPress’s wp_register_style() / wp_enqueue_style() functions, this plugin would be compatible with CSS / JS combining plugins. :)

  353. Suggestion: Lines 495 – 507 add_option() is called for every instantiation of WordPress. It would be more efficient to wrap these in a test like:

    if (!get_option('ddfm_installed')) {
    	...
    	update_option('ddfm_installed','1');
    {

    Also, following up on my earlier comment, what license is your code under? It would be really helpful to know how one can use your code. Can we assume your code is released under the GPL like WordPress?

  354. I tried using ReCaptcha and have the same problem as @Will #1193 (as yet unresponded): The rest of the HTML page fails to load after

    I’m using a custom theme, and have ReCaptcha enabled for comments. As both the comments and the form are on the same site, I should be able to use the same API keys, shouldn’t I?

    Overall the form works well, and is easily styled by CSS.

    Great job,
    -Tony

  355. Ran your gd-test … results:
    GD is supported by your server!
    GD Version Yes
    FreeType Support Yes
    FreeType Linkage Yes
    T1Lib Support No
    GIF Read Support Yes
    GIF Create Support Yes
    JPG Support Yes
    PNG Support Yes
    WBMP Support Yes
    XPM Support Yes
    XBM Support Yes
    JIS-mapped Japanese Font Support No

    by dagondesign.com

  356. Verify image not displaying.

    Path to plugin directory is correct, tried all methods …. still not working.

    Path to image: http://ateenslif3.com/wp-content/plugins/dd-formmailer/dd-formmailer.php?v=1

    What is the v=1?

  357. Secure PHP form mailer script is working great with very install process. It covers great deal of blogging activities.

  358. I love this plugin and have used it a few times, but there are a few annoyances with the default setup that could be improved:

    1) Each set of fields is automatically wrapped with a paragraph of class “fieldwrap”. This can cause all sorts of problems and I find it’s redundant. Can these be made optional?

    2) Need a way of specifying the label text on the button for multiple forms — not all forms want to “Send Email”. At the moment I’ve had to hack to core code to check the value of the form and apply different labels depending on the form.

    3) There’s inline styling and some exrta HTML added in the core code (styling of radio buttons and BR tags after each radio/checkbox). It’s inappropriate to use inline styling, this should be done directly in the CSS file, so could this be removed by default? And could the BR tags also be optional?

    It’s a great plugin but currently it’s a little too restrictive as it stands to easily integrate clean forms without making them “fit” the DDFM way… ;-)

  359. How can I BOLD the returned/entered text fields in the emails? Example in the email:
    Name:Aaron

    Just want the received input to stand out more. It doesn’t look like it’s covered in the CSS, or options.

  360. 1323
    Shomari Sharpe

    Hi, very nice script but i’m having 2 challenges.
    1. how do i customize the layout of the fields
    2. how do i go about adding a country dropdown with countries from a database.

  361. 1322
    Stephane

    Hi,

    I,ve been using the form in French on a few different sites located on different servers and different wordpress versions and I always have the same problem with French characters in the emails I receive from the plugin.

    As an example, téléphone will look like this: Téléphone

    Any idea on how I can fix this?

    Thanks for the great plugin!

  362. 1321
    Ken B

    Just installed the form mailer. Nice plugin – one problem:

    When using the auto reply function, no text appears in the auto reply message when sent to a Yahoo email address. someone had suggested the following edit:

    change $auto_reply_headers .= ‘Content-Type: text/plain; charset=utf-8′;

    to

    /*$auto_reply_headers .= ‘Content-Type: text/plain; charset=utf-8′;*/

    around line 1794

    However, when I tried that I received a parsing error and the page with the form did not load. Any other suggestions appreciated.

    thanks.

  363. awesome plugin, exactly how a WP form should work.
    one problem- i deactivated the plugin and then reactivated it, and now the forms no longer appear. i don’t get it.
    any thoughts?

  364. Wunder bar das Script :-)

    Super Danke

    MfG
    Sky

  365. 1318
    Issy

    I’d like to know how I can get the form to display the labels in rows:

    name:
    input field

    last name:
    input field

    Thank you for all your help

  366. Congratulations, and me are use your Plugin – and is wonderfull!
    Regards!

  367. is there any way to load these forms in a lightbox?

  368. Hey!

    I found your plugin really great and useful!
    A small feedback: I was editing a form when I push backspace (think focus was not on any fields). It erased the whole from and there was no way back :( I lost hours of works (I have a quite complex form). Is it possible to avoid it? Used Win XP + Firefox 3.x

  369. I am wondering what type of file to create for the delimited file, txt, html, or other. And what should the correct permissions be, 664, 764, or something like, 774? Thank you for the help. This plugin is exactly what I’ve been looking for (if I can get the delimited file to update.

  370. I’d like to know if it’s possible to have multiple forms on one page.
    I’d like to have a main form and a small form on the sidebar.

    Thanks for this great plugin!!

    Happy coding.

  371. 1312
    Casey

    I have a weird question… how can I change the size of the text in the verification image? I know I can set the height of the image, but that just squishes the text… and adding font-size to the css for the img doesn’t nothing…

    I don’t see anything in the php files for the image verification functions that relates to the size of the text and there’s no option in the ddfm main settings.

    Ideas?

  372. thanks for this amazing plugin ! i want to know how to change alignment of the form ? i want to make it right alignment in my contact page .. i already use the form at zelofabrics.com/contact but the form is centre alignment now … any clue ?

  373. the function ddfm_gen_date($item) – it wasn’t pulling the class name correctly on my output – I simply hard-coded it in on line 983 -
    $gen .= '<input class="fmdate" type="text" name="' . $item['fieldname'] . '" id="' . $item['fieldname'] . '" value="';
    Its a hack and doesn’t really address the root of the problem, but it got the date input to listen to the styles that I had applied to it correctly.

  374. Great plugin

    Thanks

  375. Here are my mods to the script to enable hidden fields.

    function ddfm_gen_hidden($item) {

    // type=text|class=|label=|fieldname=|max=|req=(TRUEFALSE)|[ver=]|[default=]

    global $form_submitted, $form_input, $show_required;

    $req_text = (($show_required) && ($item['req'] == ‘true’)) ? ” . DDFM_REQUIREDTAG . ‘ ‘ : ”;

    $gen = “”;
    $gen .= ” . “\n\n”;

    return $gen;
    }

    //————–

    foreach ($form_struct as $f_i) {

    switch ($f_i['type']) {

    case ‘text’:
    $o .= $this->ddfm_gen_text($f_i, $show_required);
    break;
    case ‘hidden’:
    $o .= $this->ddfm_gen_hidden($f_i, $show_required);
    break;
    case ‘password’:
    $o .= $this->ddfm_gen_password($f_i, $show_required);
    break;
    case ‘textarea’:
    $o .= $this->ddfm_gen_textarea($f_i, $show_required);
    break;
    case ‘widetextarea’:
    $o .= $this->ddfm_gen_widetextarea($f_i, $show_required);
    break;
    case ‘verify’:
    $o .= $this->ddfm_gen_verify($f_i, $show_required);
    break;
    case ‘fullblock’:
    $o .= $this->ddfm_gen_fullblock($f_i, $show_required);
    break;
    case ‘halfblock’:
    $o .= $this->ddfm_gen_halfblock($f_i, $show_required);
    break;
    case ‘openfieldset’:
    $o .= $this->ddfm_gen_openfieldset($f_i, $show_required);
    break;
    case ‘closefieldset’:
    $o .= $this->ddfm_gen_closefieldset($f_i, $show_required);
    break;
    case ‘checkbox’:
    $o .= $this->ddfm_gen_checkbox($f_i, $show_required);
    break;
    case ‘radio’:
    $o .= $this->ddfm_gen_radio($f_i, $show_required);
    break;
    case ’select’:
    $o .= $this->ddfm_gen_select($f_i, $show_required);
    break;
    case ‘file’:
    $o .= $this->ddfm_gen_file($f_i, $show_required);
    break;
    case ’selrecip’:
    $o .= $this->ddfm_gen_selrecip($f_i, $show_required);
    break;
    }
    }

  376. I changed:

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

    to:

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

    and got it to activate BUT now cannot receive any emails!

  377. Hi there not sure if that update was also meant to resolve my (as well as Leif’s) problem but this new version still gives me the same error when trying to activate:

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nz/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 197

    I have had to revert back to v 5.4 but need this new one as I need to save the form output to a file vs. email. Please help. Thanks!!

  378. I just uploaded a small update. Apparently some of the code used in the new email validation test required PHP 5. It should now work for those of you using PHP 4. Just re-download and let me know how it works for you.

  379. 1304
    leif

    I get the same error as Reg on WordPress 2.6.2..

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nz/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 197

  380. 1303
    John

    Hi, nice plugin. I would like the ability to save all input into a database table and not just a file.

    Thank you.

  381. Hi I am trying to activate this plugin on Wp 2.6 but get the following error:

    Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or ‘}’ in /nz/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 197

    Can you please help. Thanks!!

  382. Hi I need your help, I can’t use the new captcha method because the html of this method is poor, and the words most of the time unreadable, I’m writing in German and my customers hate to hear english letters:(

    but the image verification doesn’t work – yesterday it does now it does not – wether by the new version of this plugin nor by older. I can’t figure out why?

    regards
    Monika

  383. Version 5.6 has been released!

    This version includes several fixes and new features.

    A javascript date chooser field has been added which displays a nice calendar to select dates (from http://www.nsftools.com/tips/DatePickerTest.htm). Another special field has been added – html – which allows you to easily insert any kind of code into your form.

    Commas can now be used in check boxes, radio buttons, and select boxes. Because commas are used to separate data in these fields, if you want a comma in your text, just use two, and they will be replaced with one before the text is displayed.

    An optional customizable timestamp has been added for those using the ’save to data file’ option.

    A few changes have been made for character support, a bug has been fixed involving spaces in selrecip data, and new (improved) email validation code has been implemented (from http://code.google.com/p/php-email-address-validation/).

    A new language file has also been added: Vietnamese

    The WordPress plugin version also adds:

    Form instances are now listed on the main admin page (DDFM-Main) with descriptions of each instance listed – so you can now keep track of where your instances are used, and quickly edit them. The code used to display all of the options pages has been updated as well, and there is improved support for multiple forms on a single page.

  384. Webmail/Yahoo Mail Auto-Replay FIX

    change $auto_reply_headers .= 'Content-Type: text/plain; charset=utf-8';

    to

    /*$auto_reply_headers .= 'Content-Type: text/plain; charset=utf-8';*/

    around line 1794

    -Fixed it for me!

  385. Hi .. thanks for great plugin.

    Just a problem with auto-reply. When the auto-reply message sent to @yahoo mail, it will sent empty message in the body. But if if the auto-reply message sent to other email (gmail and my tunderbird email client) everything is ok.

    Anyone know the problem ?

    Thanks

  386. Correction to previous code examples:

    In the form submit input:
    name="form_submitted_'.$this->inst.'"

    In the processing script at the submit check:
    if(isset($_POST["form_submitted_".$this->inst]))

  387. If it hasn’t been fixed yet I figured out a way to have multiple dd formailer forms on one page and still send only one email.

    Before this fix, when I submitted one of the multiple forms, I would receive emails from each form on the page, but all with the same content. To fix this, I appended $this->inst to the submit button name value:

    name="form_submitted_".$this->inst

    in the form and at the submit check:

    if(isset($_POST["form_submitted".$this->inst]))

    in the processing script. This way, only the form instance that was submitted will process the data.

    Hope the helps.

    ** I am using the multiple forms across 5 tabs that just hide and reveal content so the user doesn’t have to refresh as they navigate the tabs. And so I don’t have to create multiple pages for the forms ;)

    I also added this function to insert HTML into the form:

    function ddfm_gen_html($item) {
    	// type=html|text=
    	$gen = "";
    	$gen .= $item['text'] . "\n";
    	return $gen;
    }

    This function allows me to insert div wrappers or header tags around form elements. It’ s really useful for the coders out there.

  388. Got CForms II working (and it uses phpmail()) for the moment.
    Rather not keep with it was its pretty ‘heavy’

    Any help appreciated

    Lal

  389. i don’t think its running properly – as when i put in bad (verify) data it doesn’t complain
    Hitting the ’send email’ button appears as if its (trying) doing something

    Lal

  390. Installed fine and have either default form or custom form appearing.

    However I get no email coming out nor not ‘thank u 4 sending the email’ message.

    I get no output in my maillog or message log
    Using mail() in a normal php works fine

    Any ideas?

  391. 1292
    Mike

    Love the plugin! Would it be possible to create an option in the main settings area, to either use or ignore the included stylesheet? I would like to manually specify the styles used by the forms on my site by including them in my main stylesheet, but your included stylesheet overrides my new values. I don’t want to have to edit your stylesheet to do this, as updating the plugin might overwrite my values, plus I want my less savvy editors to be able to figure it out.

  392. How come available updates for this plugin don’t show up in Wordpress like they do for the rest of the WP plugins?

  393. Hello,

    it’s me again. I found a solution. I simply added these two lines after the infection test:

    
    $email_subject = mb_encode_mimeheader($email_subject, 'UTF-8', 'Q', '');
    	$sender_name = mb_encode_mimeheader($sender_name, 'UTF-8', 'Q', '');
    

    Now everything looks fine.

  394. Hello,

    I’m using this plugin on an German website using UTF-8. When I receive a Mail the umlauts (Umlaute) in the message text are displayed correctly. But the umlauts in the mail subject are like this “üß”. Is there a way to change the charset of the subject?

    Thanks for Your help,
    Janko

  395. is there a way to alternate classes for form fields?

  396. Is there a way to modify the class for the class “fieldwrap? We want to alternate styles on long lists of fields.
    TY

  397. I have to admit I don’t really get it how this plugin works, but who cares as long as it does its job.

  398. how do you change the border color around a textbox?

  399. It’s probably worth mentioning that if you use selrecip, and put a space after the commas in the recipient list, message sending fails.

  400. Version 5.51 has been released

    This update fixes several issues
    - Verification image now displays properly in Safari and Chrome
    - Misc changes to email headers to ensure compatibility
    - Auto-reply issues should all be resolved, including sending auto-reply messages when they are not enabled, and the extra data in auto-reply messages
    - The path for language files should now be auto-detected properly in all cases

    Enjoy!

  401. 1282
    ajhooven

    So did the autoreply still send when the autoresponder fields are left blank in the form setup?

  402. 1281
    Joan

    Hi ajhooven, thank you for taking the time to reply. I did what you suggested and the same garbage autoreply was sent. I compared the old version that I have used before (5.33) to the new one (5.5) which turns out to be any references to “sokai” – lines 1287-1290 and line 1304 and 1308 (as also found by sven below) I comment those lines out and now it works.

  403. 1280
    ajhooven

    Sorry, comment 1279 is not going to work.
    Change the added line (1310) so it reads:

    
    $orig_auto_reply_message = trim(get_option($this->var_pre . 'auto_reply_message'));
    

    instead of:
    
    $orig_auto_reply_message = $auto_reply_message;
    

  404. 1279
    ajhooven

    Joan: Try this:
    Change line 1792 where it says

    
    if (($auto_reply_message != "") && (trim($sender_email != ""))) {
    

    To:
    
    if (($orig_auto_reply_message != "") && (trim($sender_email != ""))) {
    

    Then find line 1309 where it says this:
    
    $auto_reply_message .= trim(get_option($this->var_pre . 'auto_reply_message'));
    

    and add the following line directly below it
    
    $orig_auto_reply_message = $auto_reply_message;
    

  405. 1278
    Joan

    I have just installed this plugin – I have used it before and it worked great. However, 5.5 (with WP 2.62) sends a blank (except for the code also noted in the comments below) autoresponder, even though the autoresponder fields are left blank in the form setup, which is supposed to mean that no autoresponder will be sent. It looks like this has been a problem since 5.5 was released. The previous version I have is 5.33 – does anyone know if that is compatible with WP2.6? Otherwise I will have to find another form mailer (and most are so much more complicated!)