To make it easier for your visitors to contact you, a form can be used on your website so that visitors can fill out information online and have the information sent directly to your email account.  There are several scripts that can be used to create a form, with two of the most popular ones being FormMail and phpMailer.

What scripts can I use to send email from a webpage?

There are lots of methods available to put a form on your website, far too many that can be discussed in this article.  Here are the three most popular scripts used on our servers with additional information on how to implement them:

Which script should I use?

If on your website you are creating a "Contact Us" type page that will email you the visitor's information, you may want to look into using FormMail. FormMail is configured to send to the same email address every time and is the simplest script to set up of these choices.

If the email address you need to send an email to is different every time the script is accessed, you should look into using either phpMailer or the php mail() function. Both of these scripts can be used within php and is useful if the email address is obtained from one of the variables within the php script.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve this article:
Email Address

new! - Enter your name and email address above and we will post your feedback in the comments on this page!

Did you find this article helpful?

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!

Help Center Search

Current Customers

Email: Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.