title: Automatically create email link from a static text
body: <p>I'm trying to figure out how to automatically link the email addresses contained in a simple text from the db when it's printed in the page, using php.</p>
  
  <p>Example, now I have: </p>
  
  <pre><code>Lorem ipsum dolor email@foo.com sit amet
  </code></pre>
  
  <p>And I would like to convert it (on the fly) to:</p>
  
  <pre><code>Lorem ipsum dolor &lt;a href="mailto:email@foo.com"&gt;email@foo.com&lt;/a&gt; sit amet 
  </code></pre>