Contact Form PHP not being sent to email -


hello have contact form php theme purchased. i've been trying make customized form no luck. tried changing variables around work 1 made myself not being sent email want information go to.

this have in html

 <form id="" action="application/application.php" method="post" class="validateform" name="send-contact">  <div id="sendmessage">   message has been sent. thank you! </div>                        youtube channel name <br> <input type="text" name="youtubename" placeholder="* enter youtube name">                       <div class="validation"></div>                       first name <br> <input type="text" name="firstname" placeholder="* enter first name">                       <div class="validation"></div>                       last name <br> <input type="text" name="lastname" placeholder="* enter last name">                       <div class="validation"></div>                       paypal email address <br> <input type="text" name="paypal" placeholder="* enter paypal email">                       <div class="validation"></div>                       youtube email address <br> <input type="text" name="youtubeemail" placeholder="* enter youtube email">                       <div class="validation"></div>                        skype <br> <input type="text" name="skype"      ``placeholder="* enter skype name">                       <div class="validation"></div>                                                               <button class="btn btn-theme margintop10 pull-left" type="submit">submit application</button>                        </form> 

and php have following;

<?php   include 'config.php';  error_reporting (e_all ^ e_notice);  $post = (!empty($_post)) ? true : false;  if($post) { $youtubename = stripslashes($_post['youtubename']); $firstname = stripslashes($_post['firstname']); $lastname = stripslashes($_post['lastname']); $paypal = stripslashes($_post['paypal']); $youtubeemail = trim($_post['youtubeemail']); $skype = stripslashes($_post['skype']);       $error = '';     if(!$error)  {  $mail = mail(webmaster_email, $subject, $message  "from: ".$firstname." <".$youtubename.">\r\n" ."reply-to: ".$youtubeemail."\r\n" ."x-mailer: php/" . phpversion());   if($mail) { echo 'ok'; }  }   } ?> 

and in config.php have

<?php // define("webmaster_email", 'support@xvinitynetwork.com'); ?> 

i'm not savvy html , have member of staff has had emergency issue attend , need contact form , running. have default form came theme , works im guessing i've done wrong here. appreciate help!

a notable error missing comma between $message , headers:

$mail = mail(webmaster_email, $subject, $message, // here  "from: ".$firstname." <".$youtubename.">\r\n" ."reply-to: ".$youtubeemail."\r\n" ."x-mailer: php/" . phpversion()); 

Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

.htaccess - Matching full URL in RewriteCond -