title: Change email address that sends confirmation email (PHP)
body: <p>I have a registration page on a site I'm working on.  When the person registers for an account it sends an email to the registrants email address with a confirmation link to activate the persons account. The problem is that the "from" email address the registrant receives the email from is: <code>myhostingaccountusername@myhostingprovider###.com</code>.</p>
  
  <p>I want to be able to have the email be: <code>no-reply@mydomain.com</code>.</p>
  
  <p>I'm using PHP and Mysql along with html for the site.</p>
  
  <p>here is my code for sending the email.</p>
  
  <pre><code>// Send the email:
      $body = "Thank you for registering at My site. To activate your account, please click on this link:\n\n";
      $body .= BASE_URL . 'activate.php?x=' . urlencode($e) . "&amp;y=$abc";
      mail($trimmed['email'], 'Registration Confirmation', $body, 'From: noreply@mysite.com');
  </code></pre>
  
  <p>How do I do this?</p>