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.

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

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2017-12-14 6:46 pm

Can any one please specify how to send emails from domain, and what are the things needed sending emails, if that happens how many we can send emails, can it be inboxed or it will be going to spam.Thanks in Advance

30,622 Points
2017-12-14 6:52 pm
You can send mail with any of the methods described above. The initial limit is 250 emails per hour per cPanel account, but you can request an email limit exemption in AMP at any time.

Thank you,
2017-07-20 10:15 am
I have been using CGIEmail for the past 7 years to send email from a web page, and was recently told this is not longer supported. I am currently looking at other options. Someone suggested I try FormMail, but I do not see any way to format the email. Is there any chance you will support CGIEmail again?
30,622 Points
2017-07-20 10:48 am
I spent some time looking into this and it seems like cgiemail is no longer being supported by its creators. This means it is not actively being updated and issues are not being addressed. This means it will become less compatible with the latest internet technology as time goes on.

If you are building a full website with a contact form, I recommend using BoldGrid with WordPress. You can easily select a prebuilt form in BoldGrid. And since it is powered by WordPress, security vulnerabilities are addressed in their regular updates.

Thank you,
n/a Points
2016-09-16 1:04 am


I got a task that when a customer visiting my webpage he may put comment .  this comment must automatically send to admin mail account.


13,821 Points
2016-09-16 8:08 am
Are you using a content management system like WordPress? How are you comments being handled? We need more information before we can attempt to help you with the question.
n/a Points
2016-09-16 12:56 am


pls help me to link my webpage to gmail. when a visitor vistes my webpage and he put a comment then that comment need to send the admins gmail account automatically.

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


10,077 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
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?

43,761 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
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.

40,990 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-11 4:22 am


43,761 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


43,761 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-06-17 10:25 am
nice work but please give us the direct link to this sites.thank you
30,622 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,


Post a Comment

Email Address:
Phone Number:

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

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