Hello,
I am trying to make a simple script in which a user can send a text message via a form I have provided. I know the number it will always go to and the carrier. It all works fine, except for the from portion. Example:
From: nobody@mywebhost.ems - Always shows up instead of the hard coded one I put in. I have tried From: Reply-To: and various other things.
Everything else comes out ok...
I posted just the part that is actually doing the sending as everything else is pretty basic and working.
<?
$headers = "From: 1112225555@vtext.com";
$to = $phone . "@vtext.com";
$subject = "Online Request";
mail($to, $subject, $msg, $headers);
echo "You text message has been sent successfully!";
?>
I have tried several additional header information and various things. Anyone had any experience with this that can correct or guide in the right direction to correct this problem.
Thanks.