ASP Form to Mail
Please, be sure to upload the "HDWForm2Mail" 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.
Most probably it's due to a spam filter in your email server. Check your spam filter settings to avoid being classified as spam (adding the "from" email into the address book or into the "trusted" list).
If the spam filter is not the problem then your server requires some custom configuration parameters. Probably you'll need to ask these parameters to your hosting service and configure the Form2Mail according to this other FAQ entry.
ASPForm2Mail tries to send the email primary by using CDOSYS and CDONTS with the most common configurations. However ASPForm2Mail is ready to accept third party email components: ASPMail, JMail and ASPEmail.
If you want to setup ASPForm2Mail manually to use some component, you can go to line #9 (Form2Mail.asp file) and change the C_MAIL_USE value:
' Possible values are "CDOSYS", "CDONTS", "ASPEmail", "ASPMail", "Jmail"
Const C_MAIL_USE = "CDOSYS"
If your web server requires a custom external SMTP address you can put it in the line#18:
Const SMTP_SERVER = "localhost"
If your web server requires authentication it can be configured some lines below.
Special Note for GoDaddy Users: In GoDaddy the SMTP server is "relay-hosting.secureserver.net", that means:
Const SMTP_SERVER = "relay-hosting.secureserver.net"
Special Note for 1and1 Users: In 1and1 (shared servers) the SMTP server is "mrelay.perfora.net", that means:
Const SMTP_SERVER = "mrelay.perfora.net"
<form action="/HDWForm2Mail/Form2Mail.asp" method="post" enctype="multipart/form-data">
These attributes are required for forms containing "file" fields.
In most cases, this error means that your server does not support ASP scripts. Please check if your server supports ASP scripts or contact your web hosting support.
Note: Windows servers usually supports ASP scripts. On the other hand Unix, Linux and other servers running Apache web server usually support PHP scripts. We have two different Form2Mail products, one for servers with support for ASP scripts and other for server with support for PHP scripts.
You can install and use the version that does not require MSAccess databases (included with the purchase).
Please, remember to restart Dreamweaver after installed the new extension.
After installed, for your current site, delete the old "HDWForm2Mail" folder and apply Form2Mail again. The new files without the MSAccess database will be generated.
Note that the MSAccess database is required to identify automatically the user's country, if you are using the version without MSAccess database the country allways appear as "unknown".
Const HDW_SUBJECT_FIELD_NAME = ""
...change it to:
Const HDW_SUBJECT_FIELD_NAME = "your-subject-field-name"
Note: "your-subject-field-name" is the name of the "subject" field on your form.
To use an email posted from your form modify the line #58:
Const HDW_FROM_EMAIL_FIELD_NAME = "your-email-field-name"
Note: "your-email-field-name" is the name of the "email" field on your form.
On the other hand, if you want to put an static subject, go to the line #51 and put the subject there:
emailsubject= "This is the subject for all my forms"
Try adding this line at the beginning of the Form2Mail.asp file:
If Request.TotalBytes > 2000000 Then Response.Redirect "error-page.html"
Note: 2000000 means about 2Mb. You need to create a page named "error-page.html" and put there a message indicating that the maximum size allowed was exceeded.
Const SMTP_SERVER = "localhost"
Change localhost with the address of the external mail server.
If your SMTP server requires authentication it can be configured at line #24:
Const HDW_USE_AUTHENTICATION = True
Const HDW_AUTH_USERNAME = "username-here"
Const HDW_AUTH_PASSWORD = "password-here"
To increase the security you can put the delivery email address directly into the ASP file and remove it from the hidden field. You can do it by editing this configuration value on line #77:Const HDW_FIX_DESTINATION_EMAIL = "firstname.lastname@example.org"
Note: Put your own email address.
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.
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.asp" 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.
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.
Optionally you can exclude any number of fields, example: captcha fields, hidden fields, etc... To do that go to the "HDWASPForm2Mail/Form2Mail.asp" file, at line #70 and add the excluded fields there, example:
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.asp (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.asp file to Form2Mail_1.asp, Form2Mail_2.asp,... and point the form's action to the related file.
Yes, it is possible. Open for edition the Form2Mail.asp file generated by the extension. At line #33 you can add the CC (carbon copy) emails:
Const HDW_SEND_CC_TO = "email@example.com;firstname.lastname@example.org"
...and copies of the original email will be sent to email@example.com and firstname.lastname@example.org respectively.
Note: If you want to CC to more than one email address then separate the emails with semicolons like in the above example.
Yes, it's possible. Edit the configuration values into the lines #40..#44 (into the Form2Mail.asp file):Const HDW_SEND_THANKYOU = True
Const HDW_USER_EMAIL_FIELD_NAME = "email"
Const HDW_INCLUDE_SUBMITTED_DATA = False
Const HDW_THANKYOU_SUBJECT = "Thank you for your message."
Const HDW_THANKYOU_MSG = "Thank you for your message. We will reply you as soon as possible."
In your form "email" must be the name of the field where the client enter his email address (second configuration parameter). Optionally you can include the submitted data into that email (the third configuration parameter).
Some servers (hosting configuration) have problems with the encoding of special characters, the solution is simple, just add this line at the beginning of the Form2Mail.asp file:
Response.Codepage = 65001
Please open the file "Form2Mail.asp", go to the line #83 and put the following configuration value to True:
Const HDW_ENABLE_DEBUG_MESSAGES = True
...then test your form again and this time you will get a detailed error about the problem.
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.