note 116637 added to faq

From: Date: Mon, 02 Feb 2015 13:19:36 +0000
Subject: note 116637 added to faq
Groups: php.notes 
Request: Send a blank email to php-notes+get-201578@lists.php.net to get a copy of this message
I have designed a landing page for one of my clients, a musician in Hollywood. We want to start a subscribers list, but the issue I am having is NOT sending the email to the proper email address, but showing the content of the email after it's been sent and received. Using the mail() function, I've successfully sent the mail using variables $to and $subject, but for the open fields any viewers of the site can type in ($name and $email), those two fields do not show up in the email. Instead, after the email is sent and received, ON THE RECEIVING END, the email reads "No content found in this email." What am I missing? Here is the PHP I have setup and the form as well: <?php $to = 'subscribertoreese@gmail.com'; $subject = 'Subscriber Data'; $name = $_POST["name"]; $email = $_POSt["email"]; mail($to,$subject,$email,$name); ?> <form> <label for "name"> <input type="text" name="name" id="name" placeholder="Name"> </label> <label for "email"> <input type="email" name="email" id="email" placeholder="Email"> </label> <input class="btn" type="submit" value="Subscribe"> </form> ---- Server IP: 72.52.91.14 Probable Submitter: 108.91.154.249 ---- Manual Page -- http://php.net/manual/en/faq.php Edit -- https://master.php.net/note/edit/116637 Del: integrated -- https://master.php.net/note/delete/116637/integrated Del: useless -- https://master.php.net/note/delete/116637/useless Del: bad code -- https://master.php.net/note/delete/116637/bad+code Del: spam -- https://master.php.net/note/delete/116637/spam Del: non-english -- https://master.php.net/note/delete/116637/non-english Del: in docs -- https://master.php.net/note/delete/116637/in+docs Del: other reasons-- https://master.php.net/note/delete/116637 Reject -- https://master.php.net/note/reject/116637 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#201578) next »