web hints
Web Design   Domains   Hosting   SEO   Traffic Generation   PPC/Advertising   Business Tips   Partners

How to Create and Send an HTML Email Form Using PHP

by Herman Drost

An HTML email form is often used in email marketing to generate a greater response from potential customers. However their is not much information on how to actually create an interactive html email form or template to achieve this.

Part 1 (http://www.isitebuild.com/html-email) of this article discussed how to create and send simple html email. In this article we will create an interactive html email form.

Benefits of creating an html email form

*generate immediate interactivity with your customers. *use of visually appealing graphics, icons and forms. *all the most popular email software now support html email. *ability to track responses *create interactive questionaires, surveys and newsletters.

Here is the step by step process how to create an html email form:

1. Create your interactive html email form page in your favorite html editor including any graphics or icons to make it look attractive.

Make sure you always use absolute urls for graphics (ie http://www.ihost-websites.com/htmlmail/header.gif ) and an absolute link for your formmail script ("http://ihost-websites.com/htmlmail/formmail.php"), otherwise they won't appear correctly.

Here's an example of an interactive html email form viewed as a web page.

http://www.ihost-websites.com/htmlmail/newsletter.htm

If you want to see the html code used for the form, click on Internet Explorer and go to: view - source.

2. Name your html formmail page (ie newsletter.htm) and save it.

Keep your html email simple by eliminating the meta tags (ie title, description, keywords). Don't use large graphics as these will slow down the loading time of your email plus quickly fill your customer's inbox capacity.

3. Obtain a copy of the php formmail script and save it to the same directory as your newsletter.htm page.

(You can get a copy of this script by sending an email to htmlemailformscript@i...).

4. Name this script.. formmail.php - this script will process the html form page (newsletter.htm) you created above. You can also use this script in combination with an html form on your web site.

5. Edit your newsletter.htm page - make sure you have the correct form action otherwise your form won't work ie

Insert different titles and images for your newsletter or contact form.

6. Edit the php formmail script. Replace the title, email and confirmation comments with your own.

7. Create a new directory on your current web site named htmlmail (ie www.ihost-websites.com/htmlmail/).

8. Place your html formmail page, graphics and script into the html directory. This will help keep all your files organized.

If you don't currently have a web site, then register a domain name first, design your html email form and upload all files (form, graphics, script) to your new web host (make sure your web host carries the php feature).

9. Upload the html directory to your web server.

10. Test the new html email form on your server first. Check that your html email form page works corrrectly when submitting your form - you should receive a confirmation immediately upon submission.

You are now ready to send your html email.

11. Open your Email Software - in outlook express (since it's the most popular) go to:

Create mail Fill out the to and subject fields Place your cursor in the body of your email message Check insert - text from file In "files of type" box scroll to "HTML Files" In the "look in" box scroll to the saved html page on your computer. (newsletter.htm)

12. Email a test to yourself and friends who have different email programs before you send it to your subscriber list. This will ensure your html email will appear correctly to all your customers.

Now you have a template you can use to send out your html emails. You then won't have to repeat this process again.

You can also alter the look of your html email template by changing the graphics and/or fields, then uploading the changes to your server.

Try using an html email form for your future questionaire, survey, ad or newsletter.

You will be pleasantly surprised!

Resources

PHP formmail script Send an email to: htmlemailformscript@i... to receive a copy of the script.

Groupmail (http://www.infacta.com) - free version allows a list of up to 100)

Add2it http://www.add2it.com/scripts/mailman-pro.shtml

Free HTML Templates http://www.sparklist.com/services/htmltemplates.html

Herman Drost is the author of the NEW ebook "101 Highly Effective Strategies to Promote Your Web Site" http://www.isitebuild.com/web-site-promotion Subscribe to his "Marketing Tips" newsletter for more original articles. mailto:subscribe@i.... You can read more of his in-depth articles at: http://www.isitebuild.com/articles

More Site Building articles:

12 Characteristics of a Successful Web Site
80% of Your Web Site is Maintenance
9 Near Fatal Flaws Most Links Pages Suffer From and How to Avoid Them
A Quick Web Credibility Quiz
A Quick Website Makeover Quiz
Adding records to a MySQL database using PHP
Blogs and Journalism
Create Cool Site Navigation in a Flash
Download Speed
Everybody's Talking About RSS
Free Autoresponders
How Much Should You Protect?
How Multiple Server Hosting impacts your website's uptime
How to Create and Send an HTML Email Form Using PHP
How to Get Your Visitors to Create Content for Your Website
How to Install a CGI Script and Increase Web Site Interactivity
How to Make Effective Use of Web Fonts
How To Stop Your Site Disappearing Into The Void
Images on web sites: when should they be used?
Is Your Website's Copy Up to the Mark?
Making it Tougher for Content Thieves
Six Ways to Save Your Site and the Internet
Step-by-step Guide To Building A Successful Website (Part 1)
The Most Important Question To Ask About Your Web Site!
The Pop Up Evolution. Are pop ups doomed? Or just vitally challenged?
Top 5 Must-Haves on Every Web
Unicode bloopers! HTML should not be visible on a web page!
Unix Webserver Crontab Basics
Update Your Site Instantly Using SSI
Using Tables to Format Your Web Page
Web Servers: Serving Up the Future
Websites for Search Engines or People?
What to avoid to make your website design effective?

Web Hints by Rolamtech

UK Hotels Guide  Finance Website Links  Web Hosting Guide

a b c d e f g h i j k l m n o p q r s t u v w x y z 1 2 3 4 5 6 7 8 9