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.7   Updated Sunday, February 22nd, 2009 at 7:19pm

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

  • 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.
  • checked - true or false. This allows you to make checkboxes checked by default.
  • required - true 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=(select),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. 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..

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  27. 1445
    Chris B

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

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

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

  30. 1442
    Jose

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

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

  32. 1440
    donny

    Michelle (1426)-

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

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

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

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

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

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

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

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

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

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

  42. 1430
    june

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

    thanks!

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  59. 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 ;)

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

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

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

  63. 1409
    Mark

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

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

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

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

  67. 1405
    Buzzkill

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

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

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

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

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

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

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

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

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

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

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

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

  79. 1393
    Kino

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

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

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

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

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

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

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

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

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

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

  89. 1383
    tom

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

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

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

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

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

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

    Why??

    Thanks!

  95. 1377
    Ricky

    Fantastic plugin, anybody knows where i can customize css?

  96. 1376
    Ross

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

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

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

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

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

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

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

  103. 1369
    the-dyke

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

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

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

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

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

  108. 1364
    the-dyke

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

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

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

  111. 1361
    Michelle

    This plugin is brilliant, thank you very much!

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

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

  114. 1358
    nohl

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

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

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

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

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

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

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

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

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

    What ca I do? Please help me!
    Greetz Irene

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

  124. 1348
    alex s

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

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

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

  127. 1345
    Krystian

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

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

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

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

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

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

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

  133. hey

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

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

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

  136. recaptcha does not work with 2.7

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

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

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

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

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

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

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

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

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

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

  147. 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… ;-)

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

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

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

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

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

  153. Wunder bar das Script :-)

    Super Danke

    MfG
    Sky

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

  155. Congratulations, and me are use your Plugin - and is wonderfull!
    Regards!

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

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

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

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

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

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

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

  163. Great plugin

    Thanks

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

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

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

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

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

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

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

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

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

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

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

  175. 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]))

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

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

    Any help appreciated

    Lal

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

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

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

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

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

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

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

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

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

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

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

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

  190. 1282
    ajhooven

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

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

  192. 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;
    

  193. 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;
    

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

  195. 1277
    ajhooven

    Although i havent used the wordpress version of this script, i have used the standalone version. The standalone version has the same problem with the auto reply containing extra lines of code. I fixed it by changing a couple of lines in dd-formmailer.php. The part of the script i changed is very similar to the wordpress version. Try the following to see if it fixes the problem:
    Comment out Line 1805
    $auto_reply_headers .= 'Content-Type: text/plain; charset="utf-8"';
    Cut Line 1405 ie move
    $auto_reply_message .= PHP_EOL . PHP_EOL . '--' . $mime_boundary . '--' . PHP_EOL . PHP_EOL;
    and paste to directly below Line 1805.

  196. I commented out all lines near ~1290 where they contain $auto_reply_message …

    // make correct encoding in auto - sokai - BEGIN
    $mime_boundary = md5(time());
    #$auto_reply_message .= ‘–’ . $mime_boundary . PHP_EOL;
    #$auto_reply_message .= ‘Content-Type: text/plain; charset=”UTF-8″‘ . PHP_EOL;
    #$auto_reply_message .= ‘Content-Transfer-Encoding: 8bit’ . PHP_EOL . PHP_EOL;
    // make correct encoding in auto - sokai - END

  197. I have tried editing the formmailer.php and this has removed the –732c7cf9e2fbd367e8772f54578487cd
    Content-Type: text/plain; charset=”UTF-8?
    Content-Transfer-Encoding: 8bit

    but now images appear as nonsense text instead of attachments :-(

    Pre editing my virus checker was convinced the autoreply messages were suspicious and wanted to delete them.

  198. 1274
    SGR

    Hello Sven. What module contained the code that you commented out?

    And by the way, how are you guys getting excerpts to show up with light blue background on these comments?

    Thanks.

    “To get rid of

    –8f11fcd73f75e299fff06700843dbbbb
    Content-Type: text/plain; charset=”UTF-8?
    Content-Transfer-Encoding: 8bit

    problem

    I commented out all #$msg .= ‘–’ . $mime_boundary . PHP_EOL; lines that were looking like that…”

  199. 1273
    SGR

    Help! - Saving form data to a file - This form mailer is fantastic. Very robust and just what I needed. After working with it for a couple of days, I’m using almost all of the features within my Wordpress site. However, saving the data to a file has me stumped. I put an empty .dat file file out on my server (with write access), and I’ve tried every variation on file path that I can think of. But still no dice. The form works just as intended, providing positive confimation after data entry, sending a confirmation email to the submitter, and sending the data to the specified email recipients. But nothing ever appears in my .dat file. Worst of all, I don’t know how to troubleshoot. Would error messages be generated anywhere? Or does anyone have suggestions? Thanks in advance for any insights.

  200. 1272
    sven

    To get rid of

    –8f11fcd73f75e299fff06700843dbbbb
    Content-Type: text/plain; charset=”UTF-8?
    Content-Transfer-Encoding: 8bit

    problem

    I commented out all #$msg .= ‘–’ . $mime_boundary . PHP_EOL; lines that were looking like that…

  201. 1271
    Dan

    Great script. Thanks!!

    Is there any way of having a group of checkboxes like your example:

    type=checkbox|class=fmcheck|label=Interests|data=fm_i1,Computers,false,
    false,fm_i2,Art,false,false,fm_i3,Music,false,false

    Not all of which are required. The form requires at least of which to be checked? (So you can select 1, 2 or all but you must check at least one).

    Thanks

  202. Just thought I’d give an update: Turns out it may be a problem with my servers spam filters. In this case php mail wont send mail that doesn’t come from my domain. You can delete the previous posts or you can leave them there for educational purposes. If anyone has a similar issue, just the server company saying php mail works is not enough. Apparently it’s auto spam reduction filters blacklist email not coming from the domain (cough: hostrocket)

  203. I did a fresh install of WP 2.6.2 and the script, and it’s still not sending mail. I’m getting user registration mails from wordpress though. Thoughts?

  204. For some reason the newest version isn’t working on Wordpress 2.5.1. -> Any thoughts? I didn’t meddle with anything and I’ve used an older version before but for some reason, it doesn’t work on this one.

  205. 1267
    Vladimir

    Hello, thanks for the script. It works great but I’ve got the same problem as others: the message sent to me is OK, but the autoreply message looks like this:

    –732c7cf9e2fbd367e8772f54578487cd
    Content-Type: text/plain; charset=”UTF-8″
    Content-Transfer-Encoding: 8bit

    message text

    –732c7cf9e2fbd367e8772f54578487cd–

    how can I fix this?

    thank you.

  206. 1266
    HotShot

    Further to problem of multiple emails being sent (reported in post 1264), I have investigated further and found this to be due to a conflict with the HeadSpace2 plugin. If that plugin is disabled, the multiple “good” emails issue disappears. You do still get a second email of garbled header information, but I think that is a separate issue.
    Looking back through the comments, I note that conflicts with HeadSpace have been reported before, e.g. posts 1116 and 158.
    I will also report this issue to the HeadSpace2 author.

  207. Hi, great script, I’m having the same issue as Ilia in post 1261. Is there a fix for this? When I don’t leave the auto-response blank, I get the same issue; the following appears above the text:

    –8f11fcd73f75e299fff06700843dbbbb
    Content-Type: text/plain; charset=”UTF-8″
    Content-Transfer-Encoding: 8bit

    and then:

    –8f11fcd73f75e299fff06700843dbbbb–

    –8f11fcd73f75e299fff06700843dbbbb–

    etc… below it.

    Thanks for any help!

  208. 1264
    HotShot

    This script was working fine for me (v5.4), then suddenly I stopped receiving messages sent via the form on my website. On adding a second ‘to’ address in the configuration, I found that each message sent from the form was received at that second address four times but still none at the first address. Complained to my server host and they fixed some config issue to get the first ‘to’ address receiving the messages again. Also upgraded to DDFM v5.5. Now I get two good messages and two garbage messages at the first address and four messages at the second address. It seems that something is causing the script to execute four times for each message submitted.
    I upgraded to WP2.5.1 from WP2.4 just before these problems started. I have also installed a number of other plugins.
    Anyone had similar problems?

  209. Oh, I should mention that I’m using IIS as my web server.

    Please forgive me if you’ve already answered this question. You might want to consider using a forum for support instead of comments.

  210. Works great with some caveats:

    - I have to modify dd-formmailer.php to use the wp_mail() function instead of the mail() function. Could you either modify the plugin to do that or provide an option?

    - The email I receive contains extra fields from the header thatlook like this:

    --827cce76d06e94b64a2aa28f7a7c0e47
    Content-Type: text/plain; charset="utf-8"
    Content-Transfer-Encoding: 8bit
    
    ...content...
    
    --827cce76d06e94b64a2aa28f7a7c0e47--

    This is not in the autoreply but in the message sent to me. Any idea why that is happening?

    Thanks,
    David

  211. 1261
    ilia

    thanks so much to the developer for working on this script.

    i am experiencing the same issue as user Bright has mentioned:

    “When the sender of the contact form receives an autoreply, the email contains around 3 or 4 long strings of letters and numbers along with the actual email message.”

    leaving the autoreply fields blank doesn’t solve the problem. the autoreply is being mailed anyway.

    an example would be:

    
    --4ddc68330a7d85d7dae8acded1c12158
    Content-Type: text/plain; charset="UTF-8"
    Content-Transfer-Encoding: 8bit
    

    i do hope this could be fixed asap. otherwise everything’s great.

    thanks so much in advance.

  212. 1260
    Dave

    I just installed v5.5 on a site and chiming in with what Ross said about the verification image… it’s showing up for me, just really, really, really tiny… can’t read it. This is not true with v5.41 that I’m using on another site.

  213. 1259
    meks

    Wonderful and useful WP plugin! I have one question, that I’ve seen asked in the comments, but nobody answered it.

    We need the submitted form to generate separate emails to six recipients. They can’t be CCs or BCCs or see each other in the “to:” line, and it would be awesome to be able to have different salutations for each recipient. Is this possible? If so, how can we implement?

    Thank you!

  214. 1258
    Len

    This is an excellent plugin. Works wonderfully and I am truly impressed. Thank you so much! I am wondering if it’s possible to change the words “send email” on the button to “submit”. Thanks a lot!

  215. 1257
    Bright

    When the sender of the contact form receives an autoreply, the email contains around 3 or 4 long strings of letters and numbers along with the actual email message.

    Has anyone encountered this problem and is there a way to fix it?

  216. Verification image isn’t showing using the wordpress script.

    I uploaded the non-wordpress script on my server and it worked perfect. GD is installed.

  217. Version 5.5 Released

    This is a very big update. Changes include:

    - Tested and works in WordPress 2.6+
    - Fixed various undefined index errors
    - Many code changes to improve xhtml validity
    - Attachments can now be saved to the server (not just emailed)
    - Much improved email header handling for language support
    - Can auto-attach url of form to message
    - Fixed issues with required fields in select boxes
    - Added Belarussian, Czech, and Japanese language files
    - Labels for checkbox and radio items are now clickable
    - Various other code fixes

    I wanted to mention something that a lot of people have asked about - using the manual form code option.

    Many of you have said that the user’s data is not saved if they have an error in their input when using this method.

    This is not a bug, it is just the way the script works. I added the following information to the page:

    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.

    If any little issues spring up just let me know. Enjoy!

  218. Nice plugin, can it work on 2.6.1 ?

  219. I just upgraded a WP 2.1 installation to 2.6.1. The older version of the contact form looked funny, so I upgraded to your current plugin. All ended up okay except for the verify image, which was extremely tiny. The only solution I ended up with was to hack the plugin and force height=”65″ width=”65″ to make the verify image about the same size as the form fields. Just thought you should know.

  220. 1252
    somedood

    After some searching through the plugin files there are indeed some depreciated template tags that are being used in this plugin. I’ll see if I can’t hack something together and post the fixes. Until then, can’t wait for the update!

  221. 1251
    somedood

    I’ve noticed that while trying to use this script on WP 2.6 the css file is not automatically loaded into the header of wordpress. Maybe some of the newer template tags have made an impact. Thanks for the great plugin, regardless of the issues with bleeding edge WP.

  222. Great plugin, I will definitely be using it!

    My question is similar: can we adapt the script for auto responders?

    Thanks

    Rich

  223. Hi,

    Okay, I’ve seen this question here a couple of times but it seems to have been left unanswered (which presumably means the answer is no!).

    The question is: can this marvelous script be adapted to attach a file to the autoresponder message?

    Cheers,

    Tracy

  224. thanks for that i am trying out this feature

  225. 1247
    Clayton

    Regarding 2.6 compatibility - It seems to be working thus far; one less than obvious step is that if using the plug-in tag within a post or page entry you need to enter the ‘‘ tag while within the HTML view otherwise the WYSIWYG editor will encode the less than and greater than signs and only display it as text.

  226. 1246
    Brian D

    I’ve used DDFM on numerous WP blogs, but I just tried installing it on a new WP 2.6 installation and the form simply won’t appear on the page. In fact, the body of the page won’t appear at all when I’ve got the code in the page. Been troubleshooting unsuccessfully, so I’m not sure if it’s the WP version or what. Just thought I’d put that out… is anyone using it successfully on WP 2.6?

  227. Has anyone checked the compatibility between Wordpress 2.6 and Form Mail?

  228. Want to use the form more than once on a website and in each instance, redirect to a different page after the form has been completed. Here’s the redirect code I’ve been using…

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

    How would I amend this code to cater for different forms ddfm1 and ddfm2 that redirect to different pages?

    Thanks

  229. (wrong email with previous comment)

  230. Great plugin,

    There is a bug that when the page reloads if you do not fill in a required field or you get the captcha wrong that the file upload fields do not get repopulated with the previous information as the other fields do.

    Feature suggestion: Obviously AJAX form submission is all the rage at the moment but I feel not all that neccesary in most cases what I really would like to see included or perhaps you can simply share some ideas how I might accomplish this: When you submit a form that includes file(s) upload a simple page overlay progress bar will indicate submission progress - helps reassure the user that something is actually happening.

    Thanks again!

  231. I’ve moved hosts (now with UKReg/Fasthosts) and the plugin isn’t working. I understand that FastHost require the addition of the fifth ‘f’ parameter, but despite editing the script as per you instruction, it’s still not working…I get either ‘unable to relay’ or ‘unable to set RCPT’ SMTP error messages. Any ideas?

  232. Hi is it possible to have commas in the text fields?
    ie.
    |data=fm_i1,Local Circulator routes between shopping, schools, and parks

  233. 1239
    Peter

    Thanks for an easy to install plug in.

    Can I ask, what is the code so that when I reach the contact form, the subject line is already filled in. eg. “newsletter request”

    Thanks

  234. the verify image on safari is unreadable. it was fine at work(10.4). However, not on Safari in Leopard.

    Same as above AriK (1233) and tipunch (1238)

  235. 1237
    Jonas

    Thanks for a great plug in! Got stuck on first writing selrecip on the recipients line and then the rest but after figuring that out everything works perfectly.

  236. One other comment that might be helpful to people:
    I wasn’t receiving the email when i submitted a form, but everything else seemed to be working right.
    I started thinking about it and i realized that my web hosting server was probably getting confused because i was sending email from my web host (which hosts my domainname) to an email account for the same domain name, but my email is hosted by a different server somewhere else. I checked in cpanel of my web host, and sure enough it was holding email for me, including the submitted form data. I configured the MX record for my web host to point to the correct server where my email is hosted, and emailing the form immediately worked like a charm.

    Many thanks for providing this script! I’ve been trying several, and this is the first one that has allowed me the flexibility to make my form work the way i really want it to!

  237. @Arik about verification image being too small:
    I’m not an expert on php, but i do know some, and i’ll bet that all you have to do is change line 95 of the file dd-formmailer.php where it says:
    $image = imagecreate(60, 24);
    and make the numbers bigger, i.e.,
    $image = imagecreate(120, 48);

  238. Same problem as AriK (1233) above!
    Unusable img on Safari
    Otherwise the plugin is really fine (okay on Firefox 3)
    Would appreciate any help

  239. dsrgsd

  240. @Kristi: I’m using the StatPress plugin for WP (available from the plugins directory at wordpress.org), and it works very well. It’s not as complete as Google Analytics or anything, and i haven’t compared it to any other stats plugins for WP, but it provides the basic info i need.

  241. 1231
    Alexander

    Great plugin but if someone sends Cyrlic characters I am not receiving them?!

  242. Easy to use dynamic form generation system is simply brilliant idea. As I have tested it works perfectly.

  243. 1229
    AriK

    Hi. Verification image created is so tiny (in Mac OS 10.5.4 / Safari) that letters/numbers in it cannot be read. Could the image size be set manually?

  244. I have a question, do you know of a good wordpress plug in for stats? I need to find one but I dont know where to look or whats the best one to use!

  245. 1227
    Mouthpiece

    Thanks for the great Plugin. It does precisely what I (and clearly others!) need done.

    Your instructions on using the Save Data to File feature is unclear, however. What exactly needs to be specified in the Data path: box? This feature is critical to me, and I just can’t seem to get it to work!

  246. 1226
    rick bible

    is there a way so that when I get the email after the form is filled out, it will show the page it was sent from? (as a link shown in my emailed information)

  247. its definately what i was looking for. Very useful. Thanks and keep update this blog ! im your loyal visitor..

  248. Great post. I especially found it useful where you stated…

  249. You are good, your blog does not support Chinese, you have seen the additive device? I am the Chinese must use Chinese! Hope improvement…

  250. 1222
    rhys

    im having problems with the OPENFIELDSET function. it does not span the entire width of the area, only about 20% of it, aligned to the right. is this a conflict with my theme?

    also, im trying to make an orderform that has a self totalling function. can this plug perform this?

    thanks for the great work

  251. I think that dynamic form generation system would be a great boost for mu blog.

  252. I’m having the same issue as Karl in comment #1156. I’m using my own form structure code. When I leave a field blank to test the validation, it does not repopulate the fields that HAVE been filled out. So the user is forced to enter it again. Is there a fix for this? Thanks.

  253. 1219
    Nathan

    I like the idea of the plugin but I’m having trouble getting it installed and working. I have downloaded the content, uploaded it to the correct folder, and activated the plugin. However, after activating the plugin, I don’t see any additional menus or option screens to configure the plugin. What am I doing wrong?

    I’m using WordPress 2.5.1.

  254. I love this formmailer. Combined with math-plugin its almost perfect! Thanks a lot :-)

  255. This plug-in rocks. Thanks so much for it! We use it on our roofing site which you can check out. Again, thanks!!!

  256. Great plugin!

    I’m already using it about 5 times and it works beautifully.

  257. 1215
    Nyo

    I can’t save to file! What do I have to write in the textbox for saving a file with all information entered in a form?
    All the path like : http://mywebsite.com/filename.txt or what?
    Please answer to me , thank you !

  258. 1214
    Valintrusa

    In case anyone else experiences this (see my prev. post # 1213)…

    Upon trial and error, it magically appears to work now. I can only guess that there was an extra line or carriage return someplace, so I copied the entire content of my Form Structure into Notepad, and removed any extra spaces and line breaks. I guess that did it.

  259. 1213
    Valintrusa

    I am SO grateful for this wonderful plug-in…thank you!
    I have tried to find the answer to my problem in the comments, but haven’t see this reported yet.
    I am running Wordpress 2.5.1 in Dreamhost. I created my first form here:
    http://www.egrr.org/blog/adoption, following your instructions carefully. If I try to submit the form with empty fields (to test for error messages), it just reloads the page with no form showing and only a “Sorry, no posts matched your criteria, please try and search again.” error message.
    I’ve followed the troubleshooting suggestions you also have posted, but to no avail. The php file test email worked successfully — it sent me a message. Adding and removing the different pieces to the $send_mail line didn’t work. Lastly, I disabled all other plugins and tried again, without success.
    I was hoping that either you or others who are using the plugin and see my post may have a suggestion for fixing this. Please feel free to test my form and see what I mean.
    THANKS!!!

  260. 1212
    jm

    Great plugin! I’m using it for our nonprofit’s web site and we are very satisfied with it. I wish to change, but only on some buttons, the default “send e-mail” button. Thats a minor issue for me, compared to the overall ease and awesomeness of this plugin.

  261. 1211
    Laban

    Hi again

    Naturally, I hadn’t seen your comment on ‘resubmission upon refresh’, when I sent you my comment recently. I used the word ‘reload’ and not ‘refresh’ to search your site.

    Now I’ve test it an it don’t seem to work. The cookie is set but not much more then that is happening. So for the moment I will stick with my addition.

    And some ting else…
    Another (peculiar) thing that happened was that when I used you example and set $sender_name to ‘fm_lastname, fm_firstname’ the ‘,’ sign resulted in a strange sender address in the received mail. Part of my host address was incorporated to ‘fm_lastname’. Here is some examples: “Smith@s34.domain.com, Jon” or “Lee@s34.domain.com, Lindien”. Without the ‘,’ the result was correct “Smith Jon” or “Lee Lindien”.

  262. I found the two places where the PHP mail function is called and changed them to call wp_mail and now everything works great. Terrific plugin. It would be terrific if you could modify your plugin to use wp_mail instead so that updates will work correctly on IIS systems.

    Thanks,
    David

  263. Great script! Thanks for sharing. Im gonna try this out rite now

  264. 1208
    Nyo

    Is there any way to customize the looking of default buttons like “send Message” or “browse”(in the upload field)?
    Thank you

  265. 1207
    Suren

    I have a problem with the Japanese contact form
    http://www.slbcj.com/jp/contact.php
    if someone types the name in Japanese, i get all funny characters on the senders name. BUT the other criteria is ok with Japanese (address , message etc…)
    Can someone help me out on this?

  266. It would be cool if this plugin used the wp_mail function instead of the PHP mail function. I run my sites on IIS so I don’t have sendmail and the PHP mail function doesn’t work. However, Scott Reilly has implemented a plugin to allow the wp_mail function to work against an SMTP server.

  267. Fantastic plugin. I was having some trouble at first but your documentation is very thorough. Thanks a million.

  268. Still having issues…if i use the default contact form…it works fine. BUt when i specify my own fields and field names and labels, it never processes the field data and just says they are missing. Even if i turn of the req=true the form processes but the not standard form fields do not contain any data.

    http://www2.onesourcevms.com/careers/apply-now

    Any ideas? Here is there form configuration i am using:
    type=text|class=fmtext|label=First Name|fieldname=fm_fFName|max=100|req=true
    type=text|class=fmtext|label=Last Name|fieldname=fm_fLName|max=100|req=true
    type=text|class=fmtext|label=Postal/Zip Code|fieldname=fm_zipCode|max=12|req=true
    type=text|class=fmtext|label=Primary Phone|fieldname=fm_Phone|max=15|req=true
    type=select|class=fmselect|label=Career Level |fieldname=fm_CareerLevel|req=true|data=(SELECT),item1,item2
    type=select|class=fmselect|label=Degree/Level attained|fieldname=fm_DegreeLevel|req=true|data=(-SELECT-),item1,item2
    type=text|class=fmtext|label=Email Address|fieldname=fm_email|max=100|req=true|ver=email
    type=file|class=fmfile|label=Upload|fieldname=fm_upload|req=true|allowed=doc,rtf,txt,pdf
    type=halfblock|class=fmhalfblock|text=.doc,.rtf,.txt or .pdf accepted
    type=verify|class=fmverify|label=Verify

  269. Great script.
    I am encountering an issue though with the validation. I have to instances running on teh site. The contact us form has all required fields, basic verification and works perfectly.

    I created another form to act as a application form and here i also require all fields. The form generates fine, but when i submit, i get errors saying that i am missing values for all the fields, even though they are all filled in.

    Thoughts?

  270. Ooops. Disregard the previous post. Figured it out with some trial and effort. Again, thanks for an awesome device.

  271. Is there any way to manually configure the width of text boxes? I’m looking to create a form with text fields that are narrower that those provided. Thanks! This is an amazing plugin!

  272. i have a problem:
    the header of my website show’s up without the body+dd contact plugin+fotter:

    http://handspot.com/contactus/

    what can i do to solv this?

  273. This is a rare post not to ask for assistance or complain about my headers not loading. I wanted to give you a personal thanks for all your hard work. I REALLY love your stuff and appreciate the work you do. Kudos!

  274. I’ve just started using this script on a project of mine and I have to say that I absolutely LOVE it. Fantastic work!

  275. 1197
    TG

    Ah, and another question — if the user fails to fill out the form correctly and generates error codes, the form is reloaded with no data — it’s not retaining what they already typed in the fields.

  276. 1196
    TG

    I have a question about the new file data option — are there potential security issues with this? My two concerns are:

    1)the data file could be easily located by a malicious person familiar with this plugin

    2)the data file could somehow be exploited to spread a trojan or virus

    Would love to hear this issue addressed.

    PS Thanks again for a wonderful plugin. One of the best WP plugins available, and your continuous maintenance of it is truly appreciated.

  277. 1195
    George

    I got the same problem like Will (post 1193).

    If you try the example on the Select:
    type=select|class=fmselect|label=Age|fieldname=fm_age|req=true|
    data=(select),0-30,31-60,61-90,91-120
    the drop down will not work. I’d like to make it work with prefix and age

    Another question I am having is: where can I put introductory text? Say something like:
    ‘if you’d like to get in touch with us, please use the following form:’
    If you place it onto a new word press page, you’ll have the same text upon form submission:
    ‘if you’d like to get in touch with us, please use the following form:’
    AND
    [e.g.] ‘thanks for your feedback. we’ll come back soon’

    I thought it should be in the form field but text does not work and neither does it work if i place it inside some or whatever tags.

    cheers

  278. Also, have you seen:

    http://www.zirona.com/software/contact-form-encryption-wordpress/

    Anyway support could be added?

  279. Hi,

    If I enable “ReCaptcha” option it causes the page to not display correctly as in no form and everything after where the form should be displayed does not display at all.

    I’ve tripled checked and both keys are correct.

    I’m running WP 2.5.1 .

    Any thoughts?

    Thanks,

    Will

  280. Version 5.41 has been released

    Saving form data to a file is now supported! Please see the new options for usage information.

    This update also includes a few minor fixes. It will no longer produce errors if the recapcha lib is already being loaded from another script, and the headers have been adjusted for file attachments.

    Enjoy!

  281. Do you know how I can show ‘email address’ in a text box and then disappear on focus? I am using Form Mailer 5.4

  282. 1190
    Tab

    Will this form only work on pages that are published?
    I have a page that has a link to the form and the link will not pull up the form (I am trying to avoid having that page on the sidbar).
    If not will it work if it is published and set to private. I have had no luck with this either.

  283. 1189
    Mark OLbert

    Okay, I failed the IQ test but I still have a problem…

    The IQ test: the example code for displaying the form is . If you’ve only got one instance this won’t work (duh). Why not help people out and make the example read , since I suspect the vast majority of users initially start off with only one instance?

    Now, however, nothing shows up on my contact page. No form. Not even the introductory text that should be there.

  284. 1188
    Mark OLbert

    Sigh. I can’t even get the form to show up in my blog. I did the mail test and I can get email. But nothing shows up on the contact form. Is it possible I’ve specified the URL incorrectly? Here’s what I entered:

    http://list.arcabama.com/board/?page_id=7

  285. I saw the part of passing values to the form but I’m not sure how to implement it.

    We have a wordpress site in development, with many users… we’ve got the user email as a variable, and want to pass that into the form, so instead of putting the email link directly on the website, it will link to a form which will send the email.

    Get what I mean? How can I send an email as a variable to the form to be used as a recipient?

  286. it all set up and everything seems to work right (works on my other older version of wp) , except no email is received or sent to me .. I am using semiologic version of wordpress 2.5 .. anything thoughts ??

  287. I have two forms: one is a contact form, plain and simple; the other is one modified to act as an event registration form. The success pages for each should be unique, but both forms only yield the success page for the event registration form. How can I fix this so that each form has its own success page. (Yes, I’ve used different HTML in the settings area to handle this, but it’s not working for the contact form.)

  288. If I have a lot of forms on my site (different languages, different features like newsletter or contact or registration etc.) … Is there a way I can NAME the instances, so that I don’t have DDFM1, DDFM2, DDFM3, DDFM4, DDFM5, DDFM6, DDFM7, DDFM8 in my admin menu?

  289. 1183
    Roman

    Hi,

    I have tried this plugin with WP 2.3.3 and 2.5 and everything works just one “error”. When I add to SELECT item value REQUIRED it seems not working, because anyway it sends the message if you select or not an item in this field.

    Roman

  290. I have some esthetical problems. In
    http://www.auravulcano.com/bienvenue/reserver I try to fix a arrival and departure form. It doesnt look so nice to have the boxes below each other. Anyone knows about how to set the boxes beside each other like fm_day / fm_month fm_year?

    Another problem is that the formmailer css seems to interact with styles.css. I dont understand where as I disabled al form css in styles.css.

  291. 1181
    Vincent

    I’m using the Dutch translation but the Field Names are still in english.

    How/where can I change this manually, tried some changes in the dd-formmailer.php but nothing works. i do not know where to change them exactly.

    please help.

    Thanks

  292. 1180
    Leon

    Hi

    As I was passing I thought I’d just say I have had the script installed in WP2.5 for a couple of weeks now and all testing so far has been 100%

    It is being used here in 2 forms:

    ‘Contact’
    ‘Reports’

    http://www.opcp.co.uk

    All fields return the relevant information and attachments work fine.

    Thanks D

  293. Nevermind, completely whiffed when reading the instructions. Put selrecip in the Recipients field and it works like a charm.

  294. Hi, I’m trying to set the form up with a drop down box for the user to select the recipient, but it’s not working. Here is the line I added to my form:

    type=selrecip|class=fmselect|label=To|data=(select),General Inquiry,user1@mydomain.com,Parts Sales,user2@mydomain.com

    I’m not sure what I’m supposed to put in the Recipients field, I have tried blank, user1@mydomain.com and the following:
    to=user1@mydomain.com|to=user2@mydomain.com

    With that field blank, the form doesn’t work. With an email address, all emails are sent to that address and not the selected address. The line with both email addresses sends every email to both addresses regardless of what’s selected.

    Any advice on how to fix this?

  295. Hi! When someone types something into the form that includes an apostrophe, I get garbage. I have a good idea of why that happens, but I’m wondering if you know of a plug-in, or something i can do, to get it to interpret special characters correctly. Any ideas?
    Thanks, by the way, again. I love your widgets. :)

  296. Hi
    WP 2.5 WordPress UTF8 Database UTF8 WPtables UTF8
    üch

    üöäß

    this is the result of :Üch, äöüß ;)

    I have updated the tables to utf8 before they are latin… I don’t know and our *special characters* work like acharm, now it is unreadable sometimes

    is there a chance to figure this out?

    kindly regards
    Monika

  297. 1175
    Mark Bieganek

    I was having some trouble updating the global settings for this plugin. Every time I would attempt to change the verification method to ‘reCaptcha’, I would receive an error “Cannot load DDFM-Main”.

    After some troubleshooting, I found the problem to be in the file, ‘dd-formmailer.php’.

    The trouble line was line 1853, which read:
    <form method="post" action="<?php echo $_SERVER["REQUEST_URI"]; ?>">

    The fixed line reads:
    <form method="post" action="">

  298. This website is currently using WordPress 2.5, and I have not seen any problems with it working so far. I have been testing it, and receiving emails from people from the form on this site.

    If anyone has any errors or problems getting it to work with 2.5, please be specific when telling me the problem.

  299. Does anybody know if tis script is compatible with Wordpress 2.5?

    Thanks in advance for any help on this!

  300. 1172
    Ben

    Thank you very much for your awesome mailer script!
    Worked perfectly, and easy to configure once I had read all the instructions.
    My hats off to you! :)

  301. 1171
    karynn

    I tried using the Contact form on this site and received an error… the form is using this plugin…

  302. How can I change the width of the textarea box. you can change the rows but not the columns…

  303. Hi, I used the mailscript in wordpress from the beginning, but since I downloade the latest version off the script and wordpress 2.3 I get a GD image from 2 milimeter not posible to read it?
    Any suggestions, I run my own macosxserver (oldie but runs super) macosxsever 10.4.
    Greetings Ton Hermans from the Netherlands.

  304. I’m using ReCaptcha - it works perfect - thanks!
    However, the field for entering the code, is ligned out to right, on top of their buttons, whereas it should be aligned to the left.

    I tried to edit ‘recaptchalib.php’, but no luck…

  305. I’m using this script on an upcoming template. I went with the advanced form options and I’m running into quite a bit of trouble. I get the name and email with no problems. There are about 15 other form fields that don’t show up in the email. Is this a common problem?

  306. Is it possible to attach a file to the autoresponder, so it can be used for folks to download a file via email?

  307. http://www.hatecity.vvcradio.com/?page_id=5

    sorry had to correct the URL to the page where i get the error.

  308. I am having an issue here, i am using this plugin on a WP page, it loads fine but when i hit submit i get the error “Not Found
    Sorry, but you are looking for something that isn’t here.”

    when i mouse over the submit button, it is showing a link to
    ?page_id=3.

    the URL is http://www.hatecity.vvcradio.com/page_id=5

  309. 1163
    Jon

    Really nice plugin!!
    Two things:
    - It’d be nice to have a feature to put hidden fields as in regular html forms.
    - It’d be nice as well to be able to send HTML mails.

    I had to modify the code to achieve these two, I hope you don’t mind but I really needed it! (very clear code by the way, thanks for that). I added type “hidden”.

    The 2nd. would be nice to have as an option in config.

    I hope you put these two so I don’t get out of sync with your updates.

    Again, really beautiful plugin, simple to use and configure! Keep the good work.

  310. 1162
    Francis

    I’m having trouble with the data filled in the forms not being included in the email. The only data I’m getting is the IP address stamp. What do I need to fix? Everything else in the set up is fine except this area.

    Tahnks in advance.

  311. Nevermind. I just remembered why. Thanks anyway!

  312. I temporarily deactivated this a few months back, but now that I reactivated it, it doesn’t appear in my Widgets listing anymore. It used to be there. Now it isn’t.

  313. Leo posted this after I posted:
    dragon design php script
    I’m not sure if it was meant for me. If it was, I don’t quite understand it. I know that somehow I need to connect the dd-formmailer.php file to the lang folder, but I don’t know how. I’m thinking I need to somehow tell it to go to the lang folder and get the english language. Is that correct?

  314. I have uploaded and installed the plugin but am getting an error message. It has something to do with this folder - lang. When I go to the form to configure it, there are no languages listed there. I’m sure it’s something very simple, but I’m not sure how to approach this. Thanks.

  315. Just tried it, and I have to say it’s very effective. Thanks

  316. 1156
    Karl Bedingfield

    Hi there,
    This is exactly what I have been looking for :)

    I only have one problem. I am using my own code in advanced and all works well apart from retaining values. I purposely left a field blank to check verification & required fields. The page refreshed but did not retain already inputted fields. What might I be doing wrong as I copied your fields as suggested.

    Thanks
    Karl

  317. 1155
    Andreas

    Great a plugin! Yet a propblem after upgrading. Instead of the verification-code the label is diplayed. What could be wrong? THANK YOU.

  318. Hello,

    I love your plugin but had a question. On my contact form page, I have some “intro” text before the form, telling users if they want to contact us to use the form below, etc. I noticed that when I submit the form with required form data missing, the error page returns with this intro text.

    I tried generating the HTML using the manual form box instead of the Wordpress page editor, but the into text is still displayed on the form validation error page.

    Is there a way to return *just* the error message and form in this case? Would creating a custom template fix this?

    Thanks a lot. All your hard work on this plugin is greatly appreciated.

    Best,
    Russ Cobb

  319. 1153
    nomad4

    Hello,
    I absolutely love this plugin! Thanks a lot!
    I just have a small problem: the auto-reply isn’t being sent out. I’ve filled out all the fields for that and used only one field in the body of the email (fm_name) as a greeting. I tried removing that and it still doesn’t work. Any advice on fixing this? Thanks.

  320. I had the same problem as Paul and Ed on comments 1148 and 1146. Having not used Wordpress for ages it stumped me for half an hour.

    Simple solution. When writing the activation code into the body text area. Instead of using the ‘visual’ tab, click the ‘code’ tab next to it, write it in there and all works fine.

  321. I would like to thank you for this contact form. I’m using the wordpress version on one site and the php version on a non software-powered site. They both work perfectly and I haven’t had any issues or spam whatsoever. =)

  322. Hi,

    How can I add a hidden field to the form ?

    Thanks
    Philippe

  323. This form has worked perfectly, except for one detail. The Verify field justifies left, but my Name & Email inputs are centered. I’d like them all on the left. I’m sure I’ve missed something small (http://tinyurl.com/yscpbe) …any help? Sorry if this is a repeat.

  324. 1148
    Paul

    I have the exact same poblem that ed post #1146:

    “Over a thousand questions and no one has this one, I must be an idiot. I put the string on the page I want the form to appear on, published the page, and all it contains is the string . I only have one instance (1) and the DDFM Main tab and the DDFM-1 tab are all filled out correctly. What have I done wrong?”

    I think something is wrong with the way I put the text in the text page but I can figure out what. do you have an idea?

    thanks a lot
    Paul

  325. 1147
    Jeff

    For some strange reason, I cannot get the forms to work above five. When you click the “Send Email” button, I get redirected to the same page without the Thank You message. I have mirrored the exact same settings as a form that does work, and have deleted the database settings to force a repopulation from scratch, but no luck. It’s as if there’s a limit to the number of forms.

  326. Over a thousand questions and no one has this one, I must be an idiot. I put the string on the page I want the form to appear on, published the page, and all it contains is the string . I only have one instance (1) and the DDFM Main tab and the DDFM-1 tab are all filled out correctly. What have I done wrong?

  327. I was using an older version until recently and thought I’d upgrade as WP was upgraded as well, unfortunately it doesn’t seem to want to play now.

    It works fine under local install (Mac OSX & MAMP) but on live server, nothing, the ‘Contact’ page only shows the header of the site and disables (not showing) the sidebar and ‘edit’ page option (when logged in).

    ?

    Looks like a return to older version until I can work out a solution.

  328. 1144
    Paul

    For those having trouble with empty message bodies, I think I’ve isolated the problem. The ddfm plugin specifies a MIME content-type of multipart/related, so that it can send text and attachments. However, most mail clients will further enclose the text part of the email within a multipart/alternative.

    A quick and dirty fix - if you don’t use attachments - is to simply change ddfm’s content-type to multipart/alternative. A better fix is to have ddfm encapsulate text portions within multipart/alternative.

  329. 1143
    Steven Fitch

    Hi, i am using the following

    type=checkbox|class=fmcheck|label=Journalism|data=fm_Journalism_In_Peru,Select,false,false

    The email that is generated only shows “Journalism:” and no indication to weather or not the checkbox was ticked.

    already looked through the rest of these comments and cant find an mention of it

  330. Kerry — I also experienced the white space issue. In the CSS I added float: left to the .ddfmwrap rule and it fixed it for me.

  331. The plugin works great. Thanks so much for this very useful addon. I use several of your plugins now. I really love them.

  332. Hi,

    Everything is working great beside one small issue. My radio options do not show up when I receive my e-mail. I have the field setup as the following in the form:

    
    type=radio|class=fmradio|label=Attending|fieldname=fm_attending|default=1|data="I want to share in the celebration! Sunsets romance and lots of drinks!","Don’t give away our beach chairs just yet! We are in need of more information.","We will be living vicariousmF&VvR6''vR6BRB 

    In e-mail this shows up as just Attending:

    Any ideas?

  333. Is it possible to attach a file to the autoresponder, so it can be used for folks to download a file via email?

    Or am I mixing functions up that should be mixed?

    Thanks!

  334. 1138
    The Dyke

    Hi,

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

    No error in my case, it sends “(select)” anyway.

  335. I read through all the comments. I saw this issue addressed a few times, but I didn’t see a solution for it.

    I installed the plug in on my Contact page. I use firefox. There is a bunch of white space between the page title and the contact form is way down at the bottom. I can’t seem to figure out how to fix it. Can you help?

  336. Hello!

    I am a Turk, and i add your plugins, Turkish version on my website. Thank you man!

  337. Ok, I’ve tried everything, and I can’t get it to work. I’ve tried forcing the type, and made sure all the settings are correct, but no form is displayed when I enter the trigger text.

    All I get is the trigger text redisplayed on the contact page.

    Can you help?

  338. :( srry:

    define('DDFM_MSSENCODIG',get_bloginfo('charset'));

  339. Hi again ^^!

    umm… a little suggestion:
    Cannot send the message in UTF-8?… I haven’t checked the entire script but I think there will be not problem.

    To make this:
    on line 292 change the code below:
    $msg .= 'Content-Type: text/plain; charset="iso-8859-1"' . PHP_EOL;
    By:
    $msg .= 'Content-Type: text/plain; charset="UTF-8"' . PHP_EOL;

    Or… even add a constant to language …bloginfo or get_option both are all good choices. ^^!
    define('DDFM_MSSENCODIG',get_bloginfo('charset');
    $msg .= 'Content-Type: text/plain; charset="'.DDFM_MSSENCODIG.'"' . PHP_EOL;

    Regards.

  340. You’re absolutely the best, mate :D

    I’m working with some of your plugins (sitemap and this form) and all works so fine ^^!
    Specially I like it beacuse your work have a custom and flexible options… without complicated editions about the original code ( for translations, CSS and XHTML valid… pfff ) ;)

    Thanks a lot!
    PD: Srry lang :_(

  341. This is a great tool and I am really enjoying working with it. One question, when a user fails to fill out the required fields the form comes back and its blank, forcing the user to reinput all of their information.

    is there a method to populate these fields with their previous values?

    Tx!
    John

  342. Thank you so much, saved me a lot of time. Great plugin.
    Way cool!!

    Steve

  343. I followed the steps and I get this error when submitting the form:
    “Could not open socket”

  344. 1128
    dilbert

    sorry, I’m too geek :-(
    I found the answer in previous comment (just put the right word in the search field ;-) )

    In any cases, Thanks a lot for your work !

  345. 1127
    dilbert

    Hello,

    First of all, I would like to thank you for your work with this very pretty plugin.
    I’ve got just one little prob with it. I installed it on a French site and, thanks to the language choice, all info messages are OK but, in the message field, when special caracter (like é à è ù) are typed, in the mail we receive, all those special cara are unreadable… Is there a way to fix this ?

    Many thanks in advance for your help.

  346. I would like to thank you so much for this plugin.
    I am totally new to web site creations. But with wordpress,
    review-site plugin, and your ddformmailer, i have created a very satisfactory and useful site http://www.myxcompany.com.
    Thank you so much again .

  347. Hi I would like to use the redirect function to send them to another website after filling in the for. But I had some trouble understanding the instructions. Can someone please help me. It looks like it is pretty straight forward. I just don’t know how to find the code and edit. thanks

  348. 1124
    Brian

    Trying to figure out why this doesn’t display the image anymore..

    lighttpd 1.4.18, using server.error-handler-404 for clean urls, php 5.2.5 ( built with t1lib and truetype) the site is running over https with an invalid cert.

    Is there someway that I could debug why this isn’t working?

    Thanks in advance

  349. Upon further investigation, I think the way you have implemented radio buttons and checkboxes is needlessly complex as well as generating invalid XHTML. Radio Buttons and checkboxes only require a label and the label should be associated with the item in question. The fact that you have extra item text that ISN’T the label complicates things because you can end up with TWO pieces of text for each label and NEITHER of these text items is clickable. I’ve customised the function for my own purposes and to how I believe this should really work — would you like me to send you the changes?

  350. Oops, last comment trashed the HTMl. Should have been: “It generates invalid XHTML: You’re using DIVS around checkboxes and radio buttons but these are INSIDE a P element — DIVS cannot be put inside P tags according to the spec. You should use SPANS instead.

  351. Also, it generates invalid XHTML: You’re using around checkboxes INSIDE a — DIVS cannot be put inside tags according to the spec. You should use here.

  352. This is a great plugin which gives me all the functionality I need, excpet for one: why is the “for” attribute not generated for checkboxes? I should be able to select checkboxes by clicking their label, but I can’t as the “for” is missing.

  353. Hi,

    i want to save the uploaded files in the server (instead of sending them by mail).
    Could you give me a tip where should i look for into the code?

    thanks

  354. 1118
    ark

    Update on my comment below (# 1120) - I figured out to change the dd-formailer.php script from

    $msg .= ‘Content-Type: text/plain; charset=”iso-8859-1″‘ . PHP_EOL;

    to

    $msg .= ‘Content-Type: text/plain; charset=”utf-8″‘ . PHP_EOL;

    HOWEVER, although that solves my problem with me receiving special characters (called umlaut in German) on my emailed form, the Auto-Response e-mail to those who write to me still get geek characters. The auto-repo cannot yet send utf-8 but is still stuck on iso-8859-1, latin.

    I don’t know php well enough to know if I have to add a statement in the dd-formailer.php where the auto-response email seems to generate from to include some sort of

    ‘Content-Type: text/plain; charset=”utf-8″‘ . PHP_EOL;

    statement.

    Can someone help me please?

    I would appreciate help asap

  355. 1117
    ark

    Hi, I am on a German server but this plugin isn’t sending the German characters properly, instead i get several geek characters. Any idea where the problem is. Again, my Wordpress is set up with language German (DE) and other forms send the German umlaut.

    PS. I have a plugin to search comments, it would be helpful hear to be able to search comments too.

    PPS. Wonderful plugin, I have a complex form and this works great.

  356. 1116
    Eric Lee

    For your info,
    The plugin has a conflict with Headspace2, which will sent 2 email on each page reload.

  357. I have just installed the Secure Form Mailer Plugin. I am getting the emails but the body is blank. We have upgraded to WP 2.3.2, I am not sure that this has anything to do with it.

    The headers are updated, the from is correct, the subject is correct.

    The bodys are blank regardless if I let the plugin format the message or create my own.

    Running PHP 4.3.2

  358. Hi Guys The problem of the SELECT option is the SPACE on the code. CONTROL the CODE ed insert it without the space.

    NOT CORRECT

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

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

  359. 1113
    Martha

    Thanks for this very helpful form.

    One thing I have a question about is how to send the form to multiple variable recipients. My form has 5 different email fields that the user can enter to send the form to friends. I have named the email fields fm_email1, fm_email2, etc. However when I try to enter these field names in the ‘Recipients:’ list, the form does not send to these variable recipients. Instead the form tries to send the message to “fm_email1@host.com”. How can I get this to work so it will actually send to multiple variable recipients?

    Thanks so much!

  360. Thank you for this plug in it was exactly what I was looking for!

  361. 1111
    Tracy

    Hi,

    I’m trying to validate the page with the form on but XHTML does not allow <div> tags with a form it seems.

    I get:

    document type does not allow element "div" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
    
    …"fieldwrap"><label>Options</label><div class="fmradio">

    Anyone solved this problem?

    Thanks, Tracy

  362. I already have customized 4 contact forms and would like to have 5. If I change the 4 to a 5 in the main, will this reset all 4, or just create one more contact form?

    Thanks,

    Mike

  363. Update… I’ve confirmed that the Auto Reply feature works *IF* you insert a target e-mail address manually (by erasing the $sender_email variable and replacing it with an e-mail address directly). So somewhere along the line the $sender_email variable is getting cleared or something…

  364. I think there may be something wrong with the Auto Reply feature. When I’ve configured it according to all the instructions, an auto-reply message is indeed created and sent. However, it’s sent to the e-mail address I put into the Auto Reply “from” address rather than being sent to the “sender_email” variable in the script.

    I’ve tried reading the PHP to find the source of the problem but I’m simply not experienced enough to see where the script goes awry (assuming it’s the script, of course).

    I doubt it makes a difference, but I’m on PHP 5 and Apache 2 with WordPress 2.3.1. The PHP mail() function works fine for me. It’s just where the Auto Reply message is sent that’s not working.

  365. WOOHOO! I figured it out. I placed the code in an iframe, whatever that is. One small, itty bitty problem though. After clicking “Send Email” How do I have the broswer redirect to thankyou.html??

  366. 1106
    Fokjulle

    Excellent application. When editing the CSS, where exactly do you edit the code that changes the style of the “submit” button (so that it doesn’t have they standard grey boring look)?

  367. 1105
    mitch

    I am trying to duplicate the form at http://rebathofillinois.com/free_estimate.cfm and I have it pretty done. But how can I get that middle paragraph of text in there above the bottom part of the form? please let me know if possible.

    otherwise mucho love on the plugin

  368. Hello, compliments for the good plugin. I have tried to install and with the default settings everything works well. But when I utilize the “Manual Form Code” I have noticed that, in case of the errors at the moment of the submit, the values in the fields are not maintained. I don’t know if that is due to a limitation of plugin or not. I have also tried to insert in the field “Manual Form Code” the same html code generated from the default settings (without any personalization) but the values are not maintained. They are maintained only when using the standard method. Is that normal? Thanks

  369. Is there a maximum number of characters permitted in messages? If so, is it possible to increase that & how?

  370. 1102
    dbarbara

    Hi — just wanted to add that I tried each the trubleshooting suggestions above except the last one — am using a gmail address that has worked in the past with this host.
    Thanks!

  371. 1101
    James Riemermann

    The wp-mail-smtp plugin URL got stripped out in my last post, I think because I put it between angle brackets. Let me try again:

    http://www.callum-macdonald.com/code/wp-mail-smtp/

  372. 1100
    James Riemermann

    Hi,

    This wonderful plugin stopped working for me because my host disabled the ability to send emails from “nobody” using PHP’s mail() command. I wasn’t able to solve it using the suggestions on this page, but I was able to solve it as follows:

    1. Install the WP-Mail-SMTP plugin, which reconfigures the wp_mail() function to use SMTP instead of mail() and creates an options page to manage host, username, password, etc. The plugin is available here:

    2. Change the two instances of “mail()” in the DDFM script to “wp_mail()”

    This solved the problem immediately. If the developer or anyone else has ideas for fixing this simply without involving another plugin, I would welcome them.

  373. I stand corrected, thanks Matt for steering me in the right direction. I jumped the gun by assuming the fatal error I received at installation was caused by an incompatibility issue. It is not the akismet spam protection plugin that comes stock with 2.3 was the culprit. After deactivating and installing the form mailer worked like it should.

  374. Thanks for the great plugin!

    Only one problem I was hoping someone might be able to help with: the verify letters are too small to read in Safari 3.0.4 (but they are perfectly readable on every other browser, however).

    Here’s a link to the page http://www.thefilter.ca/articles/submit

    I’ve looked high and low for an answer to no avail. Any help would be greatly appreciated. Thanks

  375. 1097
    Galinux

    Hey,
    that’s awesome plugin! However I experience an issue with upload.
    It doesn’t allow me to uplad files with extensions such as zip and cdr even when I remove all the restrictions for allowed extensions.

  376. hi folks

    i worked out my problem. the code is working now.
    i had forgotten - my code had spaces in it - that is why it was not working i think.

    http://worldpeacepoll.com/fabradio/?page_id=199

    alto

  377. Version 5.4 has been released

    Several new features have been added. There are now three choices for image verification:

    1) disabled
    2) basic (uses the scripts own simple captcha - GD required)
    3) ReCaptcha (uses the system from http://recaptcha.net - requires free account sign-up)

    Also, an option has been added to manually specify your own form code. This means that you can choose to either use the dynamic form creation system (which requires no code to be written), or completely customize the form yourself. This is an advanced option, however, and requires decent knowledge of html and css.

    5 new language files have also been added: Catalan, Danish, Turkish, Polish, and Romanian

    Information has also been added (under ‘Other Modifications’) on how to use SELRECIP together with BCC.

    And lastly, several html and css adjustments have been made, to help with various issues.

    Enjoy!

  378. hi folks
    does anyone know how to, or is it possible for users to “choose multiple options” in the form … see form at website link or here

    http://worldpeacepoll.com/fabradio/?page_id=199

    thankyou for your time
    alto

  379. hi folks
    have done a search for “choose multiple options” on a few pages
    QUESTION
    how can i search ALL of the comments? i have tried to “show all” pages several times and closed everything else on my computer, but it does quite get to “show all” before it freezes the computer.

  380. 1092
    Eric

    I think there is a bug in using the field of select.

    type=select

    When it is been used, it will send a extra email to the recipient. Example, if I use it 2 times in my form, it will send 3 times. I am using wordpress 2.31.

    Thank you

  381. 1091
    James Riemermann

    Hi,

    I am doing my best to read your materials but am having difficulty understanding what I need to do.

    You write the following:

    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“);

    I’m pretty sure this is the issue with my host. But I’m not clear on your suggestion. The way I’m reading it–possibly misreading it–is replace the code in your script:

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

    with the following:

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

    (where user@domain.com is a valid email address on my domain.)

    When I make this change I get the following error when loading a page using the ddfm tag:

    Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in myserverinfohere/wp-content/plugins/dd-formmailer/dd-formmailer.php on line 335

    Am I misunderstanding what you’re recommending–should I be not be replacing the line in your code with the one using a valid email address?

  382. 1090
    Jonas

    I want to build a simple order form and wondering if it´s possible to attach images next to the check boxes?

  383. No matter what I do, option lists don’t get the “req” attribute. Although the use doesn’t change the default option, the form gets sent.

    The code:

    type=text|class=fmtext|label=Numele ÅŸi prenumele|fieldname=fm_name|max=100|req=true
    type=text|class=fmtext|label=Adresa de e-mail|fieldname=fm_email|max=100|req=true|ver=email
    type=select|class=fmselect|label=Anul de studii|fieldname=fm_choose|multi=false|req=true|data=Selectează,#Cursuri de zi,Anul I,Anul II,Anul III,Anul IV,#Învăţământ la distanţă,Anul I,Anul II,Anul III,Anul IV,Anul V,#Masterat,Anul I,Anul II
    type=verify|class=fmverify|label=Introdu codul din dreapta

  384. I just wanted to thank you for developing and sharing this very useful and very well designed contact form. I just uploaded your wordpress plugin version and I am loving it.
    Thanks a bunch.

  385. Thank you for sharing this plugin!

  386. The problem with forms/submit/browse buttons appearing after the sidebar ends is WITH THE FORM CSS, now our own CSS. If we have a sidebar code come before and floating, then the clear:both of the submit button css in the plugin’s files will make it come below the sidebars end. Change to clear: left; or remove it and re-upload. I’d suggest not having that code in there in the next release.

    Firebug did help, because it showed the plugin’s css, which I did not look at previously. Although Firebug is just a fancy way of looking at view source and your css, for the most part. (And I hate that insect icon!!!!!! UGH!!!!!) Ha ha.

  387. 1085
    matthewbee

    As you requested, I read through and searched for smtp before asking this basic question…
    I’ve just downloaded and installed your WordPress version of the plugin on a Brinkster site and I’m receiving a fatal error when I attempt to save the WordPress Options. The error message is:
    Fatal error: Cannot redeclare st_smtp_add_pages() (previously declared in E:…\wp-content\plugins\swift-smtp\shiftthis-smtp.php:43) in E:…\wp-content\plugins\swift-smtp\shiftthis-smtp.php on line 47

    Any advice on this would be greatly appreciated…

    Kind regards,
    Matthew

  388. Fantastic work on the plugin. Thanks for the regular updates! A client of mine wants some fancy-pants tracking/referral info and I found this comment about tracking, but I can’t figure it all out. Mostly, where to put code. The programmer who built the referral code (PHP) sent me (1) what needs to go on every page and (2) what needs to go in the form. Anyway, blah blah blah. I just wanted to make a note that some help with tracking/referrals would be great in the future. Again, great work!

  389. 1083
    sjw

    I’m including the form in a strict doc and it doesn’t validate.

    Line 125, Column 46: there is no attribute “name”.
    …s=”ddfmwrap”><form class=”ddfm” name=”form1″ method=”post” action=”http://www

    Is there a fix? Great form by the way.

  390. Sorry for asking what is probably a stupid question, but I can not get this plugin to work. The page just shows the trigger text. Page is at http://www.test5.centerpond.com/?page_id=41

    This is the URL I have plcced in the DDFM-Main options. Have I entered the trigger text wrong?

    Thanks very much for your help.

  391. Can someone please explain me how to insert the radio button one next to other and not one under another as it’s set by default when buttons are inserted into the form.

    Is it the the problem in css correction or in the script?

    Thank you,

  392. Great plugin, we have translate it to basque language. Are you interested in adding it to the plugin languages? Contact me and i’ll send you the file.

  393. hello, i hae try to install this plugin at WPMU 1.2.5 didn’t worked but i put it on my blog & working nice.
    i want to translate it to hebrew.
    where i need to edit tin the file so i will see hebrew in the form that u see @ the blog?
    thank you.
    Pinto

  394. 1078
    Amber

    This is a great plugin, however my form will not validate because of the div tag inside of a p tag in the display of checkboxes and radio buttons.

  395. is ok, i fixed it at dd*.css file

  396. Hello,

    i use the plugin here: http://www.feuerwehr-nonnenhorn.de/wp/kontakt/
    But now i have the problem that between the from-fields and the send-buttom is large “withe” field. Please can you help me or give me a hinbt how to fix! Thanks a lot!
    yours, Joerg

  397. Trying to get this to work - plugin is installed and all looks good - however I am not getting back to my “contact” page after hitting the submit button. Anyhelp would be appreciated. Your script is running here: http://www.bladeofhonor.com/?page_id=35

  398. Hi, I just finished installing the latest version of this plugin, but it won’t let me activate it. I’ve uploaded everything onto the right direction but it gives me a 406 error when trying to activate it. Why is it that it won’t let me activate it?

  399. Hi there, absolutely fantastic script thanks very much. Very easy to install and set up even for a novice like me. Cheers.

  400. I am having an issue trying to get the verification image to show up. It has worked fine in the past but in the last couple of weeks has stopped showing up on most of my sites.

    I’m running primarily Wordpress blogs version 2.2 and below and my sites are hosted on Dreamhost. Anybody know of any changes they might have made or is anyone experiencing a similar problem?

    When I try and view the image from the context menu I get an error that says “The image “http://redlettersstudio.com/wp-content/plugins/dd-formmailer/dd-formmailer.php?v=1″ cannot be displayed because it contains errors”

    This is the actual source code that is produced:
    GIF87a<��€��ððð�Z¾,����<���m„©Ëí£œ´Ú‹³Þ¼ûjÁHäËœe2*hÕ±›ñl¯rS8®ê…7žÌÇî­_J‰<- DcÓhâ„¢©Zë óiT‰*q.§Xõ9ä‚ÕÂzÄ<.›¿z•.(8HXhxˆ˜¨Q��;

    Any help would be great.

    Thanks.

  401. I had the same problem as Netta Marshall in wordpress 2.2. But then I found out I had one extra space between req and data and my code looked like (req=true| data=(select),value1,value2,…). This caused my data list to go to the next line. After deleting the extra space selecting works fine.

  402. 1070
    Henry H

    @Leanne: Thank yoU!! It works with that CSS! :)

  403. 1069