I had put a PHP email system up, and that’s working fine. When I send a message it comes up as “a7269592@srv15.000webhost.com” How could I get it so when someones opens the email it’s from my company name? Here’s my PHP. Thanks in advance
-Ben
<?php
$headers= "Inquiry: " . $_POST['inquiry'] . "\r\n" .
// ect etc
"Contact: " . $_POST['contact'];
"BCC: " . $_POST['email'];
$from = "someonelse@example.com";
$header1 = " ";
$header2 = " ";
$to_myself = "";
$to_visitor = $_POST["email"];
$common_data = $_POST["message"];
$thank_you = " ".$common_data;
mail($to_myself, "Your Memory", $common_data, $header1);
mail($to_visitor, "Your Memory", $thank_you, $header2); ?>
Try this:
You should also read the documentation