title: PHP Mail Sending a dynamic PHP Contents
body: <p>I'm Creating a weekly Updates to my clients, and I want to include the latest (News, Articles, Photos) in this mail. So I created "webmail.php" page that's been created <strong>Dynamically</strong> using MySql, contains all my updates I want to send to my clients, with heavy css and html contents.
  I'm using this PHP code in my script</p>
  
  <pre><code>ob_start();
  include ('webmail.php');
  $content = ob_get_clean();
  $message = $content;
  mail($email,$subject,$message,$headers); 
  </code></pre>
  
  <p>The problem is I'm facing (500 Internal Server Error). I'm sure that my webmail.php contains no errors and this problem happens because this page has been created Dynamically.
  Any Idea to solve this problem?. Thanks</p>