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:

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.

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
Staff
29,747 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
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

TO, SIR, SCOTT MITCHELL, GUIDE ME HOW TO SEND WEB PAGE TO EMAIL

Staff
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-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
39,641 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
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?

Staff
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
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

 

Staff
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
2016-09-16 12:56 am

sir,

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
2016-09-16 1:04 am

Sir,

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

Thankyou

Staff
13,572 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.
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?
Staff
29,747 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,
John-Paul

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.

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