There are several different tools available that you can use to send emails from a web page. The following scripts are the most commonly used on our servers:

FormMail:


How to set up FormMail to send emails from a webpage

phpMailer:


How to use phpMailer to send emails from a webpage

PHP mail() function:

Using the PHP Mail() Function to send emails from a webpage


What script should I choose?

If you are creating a, "Contact Us" type of page, you may want to look into using FormMail. FormMail is configured to send to the same email address every time, and is a simple script to setup.


If the email address you need to send to is a different email address every time, for example a user has signed up for something on your website and needs a confirmation email, you should look into using either phpMailer or the php mail() function. Both of these scripts can be used within php, and this is very useful if the email address you need to email is gathered from a variable in your php script.

The phpMailer script can work on any of our servers, however due to current SPAM standards involved with the PHP 'nobody' user, the php mail() function is not enabled on all of our servers. All of our newer shared servers have the php mail() function enabled, however it is not enabled on some of our previous servers. Please contact the support department if you are unsure whether your server has the php mail() function enabled.

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
Name

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

Like this Article?

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!
Ask a Question
n/a Points
2014-06-17 10:25 am
nice work but please give us the direct link to this sites.thank you
Staff
7,266 Points
2014-06-17 10:43 am
Hello nealson,

Thank you for contacting us. I am not exactly sure what you are asking, but here are all the links for within this page:

Formmail: http://www.inmotionhosting.com/support/email/send-email-from-a-page/how-to-set-up-formmail

phpMailer: http://www.inmotionhosting.com/support/email/send-email-from-a-page/using-phpmailer-to-send-mail-through-php

PHP mail() function: http://www.inmotionhosting.com/support/website/sending-email-from-site/using-the-php-mail-function-to-send-emails

If you have any further questions, feel free to post them below.
Thank you,

-John-Paul
n/a Points
2014-07-11 4:22 am

SIR , PLEASE SEND ME METHOD ABOUT HOW TO SEND EMAIL FROM A WEB PAGE

Staff
15,308 Points
2014-07-11 7:58 am
Hello Kirit,

I am unsure what you are asking. The three methods described and linked above are the methods of sending an email via a webpage. You will want to click on those links and read the additional information. If you have a specific question about the information, we are happy to assist you.

Kindest Regards,
Scott M
n/a Points
2014-07-15 1:33 pm

If you have a PHP site and need free and easy open-source solution, then DPOST (http://sourceforge.net/projects/dpost/) may help.

This is a template based e-vent emailing especially good for PHP, but may also be used by other sites in your company/domain, .Net, Java friendly.

And it is free.

Staff
15,484 Points
2014-07-15 1:38 pm
Hello Peter,

Thanks for the reply and the suggestion Peter! Here's the link that you provided again since it's not popping up as a clickable link in your post above:

DPOST

Kindest regards,
Arnel C.
n/a Points
2014-07-21 7:30 am

 

Hello

Your instructions for making form mail is detailed and useful. I already have a form mail in my web site. but i want something like this:

Please take a look at this page. she has a gray button that if you click

it asks email of the sender and receiver and the stuff that you see.

it works nicely. I want to make something like this and add to my web site. I have looked at the source of her page and see two pieces of the script there that does this thing. but i am not sure how to glue them together and make it work. perhaps if you soend a little time yopu can work it out.

if you do and if you write an ionstruction page, then it will be helpful for me and most probably for many other people. it is a good function for a web site.

thanks

http://wagepoint.com/blog/10-great-places-to-syndicate-your-content

wish you happiness

Moses

 

Staff
15,308 Points
2014-07-21 9:04 am
Hello Moses,

It is indeed a very nice setup. That site is a WordPress site so that entire contact area for social media and email is likely a plugin of sorts. We don't currently develop in that area or make custom coded php solutions, but I will definitely place that on a list of potential projects to see if it is something we may be able to develop for a general site for a future article.

Kindest Regards,
Scott M
n/a Points
2014-07-22 11:28 am

hello. i made ot work. cgi version here: http://robot-hosting.com/form/cgimail04.html     and the php version here: http://robot-hosting.com/form/index_simple.html   in my previous comment, i made a typo. these two links both can send emails to multiple receivers. M 

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

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

9 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

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

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!