title: Using imap_search with a Godaddy hosted email account?
body: <p>I'm having issues with using <code>imap_search()</code> using a Godaddy hosted email account.</p>
  
  <p>I have created a script that connects to 3 mail boxes using PHP and the <code>imap_open()</code> and <code>imap_search()</code> functions before looping through all the emails and retracting the specific information that I need.</p>
  
  <p>It works fine with 2 other accounts, 1 hosted with gmail and the other self hosted. With the Godaddy account I don't have hosting with them they only host our emails and our website is hosted elsewhere.</p>
  
  <p>I can connect fine to the mail server using <code>imap_open()</code> without errors, however when I use <code>imap_search($inbox,'UNSEEN')</code> it doesn't return any emails, I've tried changing 'UNSEEN' to 'ALL' but it is still not retrieving any emails.</p>
  
  <p>The imap_open host value im using is <code>{imap.secureserver.net:993/imap/ssl}INBOX</code></p>
  
  <p>I don't know if anyone has had any issues with this before and while I wait for a response from GoDaddy, I know that users here are usually a lot quicker at responding and more informative so I'm asking the community here.</p>
  
  <p>If I run echo commands after the <code>imap_open()</code> function I can see this on screen so I know it is getting that far in the script, it is just returning a blank array of emails for the <code>imap_search()</code> request.</p>