Answered by the Webhosting Experts

Dedicated Servers

Bare Metal Computing
Tired of overpaying for outdated hardware or nonexistent technical support?

Click now and chat with our highly skilled account managers. Learn about Hivelocity's latest server deals or browse our bare metal servers by clicking the link below.

See the Hivelocity difference today!


example PHP formmail script

1) Sample PHP Form Code:

<form action=phpsend.php method=post>
Your Name:
<input type=text name=name>
<input type=text name=email>
<input type=submit value=Submit>
2) Create a file called phphsend.php with following code (modifying with your address):

//Declare the variables of your form
$subject = “Testing.. 1 2 3”;
$message = “Hi there!”;
$from = “PHP mailer test”;
//Contents of form
$email =$_POST[’email’];
//mail() function sends the mail
mail($recipient,$subject,$message,$from,” -f VALID-USER@THISDOMAIN.COM);

NOTE: -f VALID-USER@THISDOMAIN.COM needs to be a valid user on the local domain so that it will be able to send



Need More Personalized Help?

If you have any further issues, questions, or would like some assistance checking on this or anything else, please reach out to us from your account and provide your server credentials within the encrypted field for the best possible security and support.

If you are unable to reach your account or if you are on the go, please reach out from your valid account email to us here at: We are also available to you through our phone and live chat system 24/7/365.