There are many different methods or components that you can use on a web server to send email to you from a viewer of your page:
There are many form mailers for the various types of server-side technologies, etc. that you could download. For example, there is one ASP, PHP, Coldfusion and CGI. One of the most popular is the PHP Form Mailer (formmail.php) that we have provided for you in the zip file.
NOTE: You may want to search the web for an updated version if you need to.
NOTE: Don't use CDONTS for ASP or CF as they may be discontinued due to capatibility with Microsoft Windows Server 2003.
Create a page (usually the Contact Us page) with a form on it and include all of the necessary form elements you need including a Submit button.
Create a Thank You page to your liking with text and/or graphics.
Using the PHP Script that is provided, all you need to do is add the following three hidden fields anywhere in the form tag of your form page. After the Submit button is fine.
Edit the PHP Form Mailer Script in Dreamweaver or another editor. While there are many parameters you can update (See Form Script documentation page on how to update all of them), we will only update only a few of the required fields and a few others.
Make a backup copy of the form mailer (in our case, formmail.php) just in case you need a fresh copy and then make changes to the original file by updating the following lines to match your web site domain names, etc:
Line 40: $referers = array('www.your_company_name.com.com', your_company_name.com.com');
Line 44: $recipient_array = array('287654319a' => 'your_name@your_company_name.com', '923456781b' => 'support@your_company_name.com');
Line 63: ini_set("SMTP","mail.your_company_name.com");
Line 70: ini_set('sendmail_from', 'your_name@your_company.com');
NOTE: See form mailer documentation for complete detail instruction.
Upload the form page any where on your site. However, upload, the PHP Form Mailer script and the Thank You page to the same directory the PHP Form Mailer Script is in.