InMotion Hosting Support Center

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:


How to set up FormMail to send emails from a webpage


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.

Support Center Login

Social Media Login

Social Login Joomla

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
19,794 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:



PHP mail() function:

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

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


31,565 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-10-09 5:59 am


31,565 Points
2014-10-09 8:47 am
Hello Kirit,

This article guides you on how to begin setting up a page or form that sends and email. We are unable to provide custom solutions at this time, however.

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 ( 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.

28,417 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:


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



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.


wish you happiness



31,565 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:     and the php version here:   in my previous comment, i made a typo. these two links both can send emails to multiple receivers. M 

n/a Points
2015-01-15 6:26 am

Hello. Cool artcile

My Question: I'm trying to implement a system where users can recieve daily or weekly email updates after signing up on my website. How do i implemet this?

31,565 Points
2015-01-15 10:11 am
Hello Herlock,

You may want to create a newletter type feature. There are many different programs out there that can handle this for you. One of the most popular is PHPList, which can be Reply
n/a Points
2015-09-22 8:16 am

What are chances of bulk maik to spam, can you please decsribe how to send mail to customer without spam because today google fetching side and make sites spamy.


How to avoid while sending mails.



Thanks & Regards


7,008 Points
2015-09-22 10:15 pm
Hello Shyamji,

I would suggest watching what words you choose to put in your emails as if Google finds anything such as pills or anything that is severely common it will mark it as spam. Also please make sure you are authenticating with your outgoing mail server as that will help. Please also keep in mind that if you use DKIM and SPF records it helps provide legitimacy to your emails.

Best Regards,
TJ Edens

Post a Comment

Email Address:
Phone Number:

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

15 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!