title: change sender email address in php form to recipient
body: <p>I'm trying to create a simple php email form that sends the submitted contents to a specified address, but the problem I'm trying to fix is the address the email is being sent from — currently, it sends from myusername@myhostingservice.com, but I want to be able to change that to a simple no-reply@mydomain.com or something else.</p>
  
  <pre><code>&lt;?php 
  
  $message = $_POST['message'];
  
  $formcontent="$message";
  
  $recipient = "reciever@example.com";
  
  $subject = "question";
  
  mail($recipient, $subject, $formcontent, $header, '-fno-reply@mydomain.com') or die("Error!");
  
  header("Location: webpage_user_is_redirected_to.html");
  
  ?&gt;
  </code></pre>