Note that there are some explanatory texts on larger screens.

plurals
  1. POphp mail error message & not working
    text
    copied!<p><br/> I have a form where users report posts. They insert message id in a text box and choose from a number of radio buttons to which the report applys to and then send the form. <br/> form:...</p> <pre><code> &lt;form method="post" action="sendmail.php" name="Email form"&gt; Message ID &lt;input type="text" name="message id" /&gt;&lt;br/&gt;&lt;br/&gt; Aggressive conduct &lt;input type="radio" name="option1" value="aggressive contact" /&gt;&lt;br/&gt;&lt;br/&gt; Offensive conduct &lt;input type="radio" name="option2" value="offensive conduct" /&gt;&lt;br/&gt;&lt;br/&gt; Rasical conduct &lt;input type="radio" name="option3" value="Rasical conduct" /&gt;&lt;br/&gt;&lt;br/&gt; Intimidating conduct &lt;input type="radio" name="option4" value="intimidating conduct" /&gt;&lt;br/&gt;&lt;br/&gt; &lt;input type="submit" name="submit" value="Send Mail" /&gt; &lt;/form&gt; </code></pre> <p><br/></p> <p>the sendmai.php file...<br/></p> <pre><code>&lt;?php // The message $message = "message id\option1\option2\option3\option4"; // In case any of our lines are larger than 70 characters, we should use wordwrap() $message = wordwrap($message, 70); // Send mail('info@uni-lad.com', 'report!!', $message); ?&gt; </code></pre> <p>Im getting the error message: <br/></p> <blockquote> <p>Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampp\htdocs\mywebsite\sendmail.php on line 9</p> </blockquote> <p><br/> how do i ressolve this? Also i get the feeling that all this wont send the input the user gives</p> <p>can anyone help?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload