title: Extract body text from Email PHP
body: <p>I am currently using an imap stream to get emails from an inbox.</p>
  
  <p>Everything is working fine except I am unsure how to get the body text and title of the email.  If I do <code>imap_body($connection,$message)</code> the base 64 equivalent of the email attachment is included in the text.</p>
  
  <p>I am currently using this function to get the attachments.</p>
  
  <p><a href="http://www.electrictoolbox.com/function-extract-email-attachments-php-imap/" rel="nofollow noreferrer">http://www.electrictoolbox.com/function-extract-email-attachments-php-imap/</a></p>