Form to Mail
Please, be sure to upload the "Form2Mail" folder and files inside. After it, if you are still getting the error, please check the path to the "form2mail.php" file in the form action attribute.
Please note that the "HDWForm2Mail" folder is generated in your local web site when you insert the Form2Mail in your page, then you need to upload that folder to your online web server.
Yes, it's possible. The PHP file is open for edition. For this change, go to the line # 402 (into the PHP file) and change this line:
$emailaddress= getHDWForm2MailParam(HDW_F2M_EMAIL);...by this one:
Yes, it's possible. Add this line below the current line # 452 (into the PHP file):
send_mail($_POST["clientemail"], $fromaddress, $emailsubject, "Thank you!<br /><br />" . $body, $attachments);
In your form "clientemail" is the name of the field where the client enter his email address.
If you want to use an external email server, you can do the following:
STEP 1- Go to Line #568 and configure the Form2Mail.php file to send primary via SMTP:
var $Mailer = "mail";
var $Mailer = "smtp";
Note: This first step is required only in a few servers, in most cases Form2Mail detects automatically that the available method is SMTP.
STEP 2- Go to Line #38 and put there your SMTP server address if is different than "localhost"
Note: STEPS 3 and 4 are required only if your server required authentication. If authentication is not required, please ignore these steps:
STEP 3- Go to Line #42 to activate authentication:
STEP 4- On the lines #43 and #44 put your username and password.
Change #1: Subject, line #409:
Change #2: From Name (add this one), line #145:
$mail->FromName = $_POST["name-of-the-name-field-on-your-form"];
Change #3: From Email, line #146:
$mail->From = $_POST["name-of-the-email-field-on-your-form"];
Replace the strings marked in red with the field names from your form.
<form action="/HDWForm2Mail/Form2Mail.php" method="post" enctype="multipart/form-data">
These attributes are required for forms with "file" fields.
This error is shown when the server does not support PHP scripts. Please check that your server supports PHP scripts.
Note: In order to send the email, some server side script like PHP or ASP is required. If you are hosted on a Windows server is probably that it supports ASP scripts instead PHP. We also have a ASP Form2Mail script available.
To increase the security you can put the delivery email address into the PHP file and remove it from the hidden field. You will find details on this FAQ entry.
Additionally, if you want to prevent automatic submissions you can add a security verification image (captcha) into your forms. We have a captcha extension here.
Please read this required configuration for sites hosted at Yahoo:http://help.yahoo.com/help/us/webhosting/php/php-28.html
Please check also this important step:http://help.yahoo.com/help/us/webhosting/php/php-17.html
To put Form2Mail and FormCaptcha together, please follow these steps:
- Insert Form2Mail into your form as always.
- Once inserted Form2Mail, insert FormCaptcha.
- Select the file "HDWForm2Mail/Form2Mail.php" as the page to protect. Click the "Browse" button to select this file.
- Configure others parameters of FormCaptcha in the "Insert Captcha" window, as always.
- Update all the files in your web server.
These automatically will generate all the code needed to achieve the functionality.
Optionally you can exclude any number of fields, example: captcha fields, hidden fields, etc... To do that go to the "HDWForm2Mail/Form2Mail.php" file, at line #53 and add the excluded fields there, example:
$excluded_fields = array ( "field1" , "field2", "field3" );
For example, you may replace
and copies of the original email will be sent to firstname.lastname@example.org and email@example.com respectively.
Be sure that your page contains a <form>...</form> tags. The input files must be enclosed into a <form>...</form> tags. To select a FORM tag to insert Form2Mail just click in anywhere into the form.
Yes, you can use it in an unlimited number of forms in the same web site. There are not additional steps required to make it work with different forms, the same Form2Mail.php (processing file) identify automatically the form that is being submitted and process it separately from the other forms.
As alternative (optional), if you want to customize a different "subject" or other custom details for different forms then you can duplicate the Form2Mail.php file to Form2Mail_1.php, Form2Mail_2.php, ... and point the form's action to the related file.
Follow these steps:
#1 - Add the char-set that you are using into your <FORM ...> tag, example:<form accept-charset="iso-8859-1" ...
#2 - Open the file "HDWForm2Mail/Form2Mail.php" and put SPECIAL_CHARACTERS to true on line #64:
#3 - Specify your char-set again on line #65:
Yes, you can use <select multiple="multiple" ...> and <select multiple ...> tags.
In PHP, to be able to post select multiple fields you need to add the characters  at the end of the field's name, example:<select name="items" size="5" multiple="multiple">
- Open the Form2Mail.php file
- Go to line #63
- Set the USE_HTML_FORMATTING constant to false:
Download the most recent version of the Adobe/Macromedia Extension Manager or the version related to your Dreamweaver version:http://www.adobe.com/exchange/em_download/
After installed open the MXP file from the Extension Manager menu to be sure that you are installing the extension using the correct Extension Manager.
After accessing that link you will get a copy of the product and a copy of the download link will be sent to your email address. If you have not received the email, please check your spam/bulk mail folder.
If you lost both download links, please contact our support service and we will send you a new download link. Please include the email used for payment in your message;
Moneybookers is accepted in almost all countries.
Please, change the "Links relative to" setting in the site configuration options (Dreamweaver 8 or later).
If this setting does not solve the problem, then follow these steps:
- Restart Dreamweaver
- Be sure that you have a local web site defined in Dreamweaver
- Open the page where you want to insert the extension(this page must be saved previously into your web site)
- Try to insert the extension again
We also accept MoneyBookers (accepts credit cards when uploading funds).
It's required to define a working site in Dreamweaver because Dreamweaver needs to know where to place the files.
Download here a PDF document with help about defining a site in Dreamweaver.
If you are testing your page directly from your local hard disk in IE 7, this message appears:
"To help protect your security, Internet Explorer has restricted this webpage from running scripts or ActiveX controls that could access your computer. Click here for options."
In IE 7 this message appears when you test a web page that contains a script or Flash item directly form your local hard disk. When you upload your page to an online web server that message does not appear.
The address from a web server must start with http:// or https:// . On the other hand if the address starts with C:\ or file:// then you are testing it from your local hard disk.
Just upload your web page to your web site and you will see that the error disappears.
- Check if you have defined a local web site at dreamweaver.
- Check if you have saved the page into your local web site.
- If you are using Dreamweaver templates, check if your templates allow an "Editable Region" in the <HEAD> section of the HTML code.
- Mark the "Use case-sensitive link checking" option in the site settings and recreate your site cache.
- After these checks, please restart your Dreamweaver and try again.
That's due to a bug in the Adobe Extension Manager that sometimes corrupts the "Menus.xml" file. That file can be found in the following location:
Windows users: C:\Documents and Settings\[UserName]\Application Data\Macromedia\Dreamweaver [version]\Configuration\Menus\menus.xml
Mac users: HD:Users:username:Library: Application Support:Macromedia:Dreamweaver [version]:Configuration:Menus:Menus.xml
To fix this problem close your Dreamweaver and try the following:
- Un-install all your extensions and then re-install them one at a time. This will work in most cases.
- If the above doesn't work then delete the "Menus.xml" file. After this you will need to disable and enable your extensions in order to get the menu entries again.
- If none of the above works then there is more than one file corrupted, the solution in this case will be to completely uninstall Dreamweaver and reinstall it again.