how to send and make a php email form -


ok try every time can't i'm using xampp , thunderbird, tryed make email form people can contact me have code right won't send gmail doing wrong. , need make activation php can sign website.

<form action="test1.php" method="post"> <p>name</p> <input type="text" name="name"> <p>email</p> <input type="text" name="email"> <p>phone</p> <input type="text" name="phone">  <p>request phone call:</p> yes:<input type="checkbox" value="yes" name="call"><br /> no:<input type="checkbox" value="no" name="call"><br />  <p>website</p> <input type="text" name="website">  <p>priority</p> <select name="priority" size="1"> <option value="low">low</option> <option value="normal">normal</option> <option value="high">high</option> <option value="emergency">emergency</option> </select> <br />  <p>type</p> <select name="type" size="1"> <option value="update">website update</option> <option value="change">information change</option> <option value="addition">information addition</option> <option value="new">new products</option> </select> <br />  <p>message</p><textarea name="message" rows="6" cols="25"></textarea><br /> <input type="submit" value="send"><input type="reset" value="clear"> </form> 

thats form.html , php test1.php

<?php $name = $_post['name']; $email = $_post['email']; $phone = $_post['phone']; $call = $_post['call']; $website = $_post['website']; $priority = $_post['priority']; $type = $_post['type']; $message = $_post['message']; $formcontent=" from: $name \n phone: $phone \n call back: $call \n website: $website \n            priority: $priority \n type: $type \n message: $message"; $recipient = "dstokesncstudio@gmail.com"; $subject = "contact form"; $mailheader = "from: $email \r\n"; mail($recipient, $subject, $formcontent, $mailheader) or die("error!"); echo "thank you!" . " -" . "<a href='form.html' style='text-        decoration:none;color:#ff0099;'> return home</a>"; ?> 

are hosting on linux or other unix-like systems? if so, depending on server(s) page hosted, need ensure sendmail or postfix running.

as root can run 'mailq' (see man pages) see if message being queued there no daemon running processing it.

also double-check spam folder see if getting tagged such gmail.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -