title: PHP IMAP Receive Attachment from Microsoft Exchange Server
body: <p>Hello my client has asked me to make a website using PHP using which he can read/reply all his emails from all his accounts. Now he has a company account on Microsoft Exchange Server, I am using PHP imap_open to get emails from the mail-servers, I am able to get Email Attachments from Gmail account but I am not able to retrieve attachments from Microsoft Exchange server accounts. No error is getting generated so I am not sure what is wrong. Do I need to write some kind of special code in order to retrieve Attachments from Microsoft Exchange server email accounts?</p>
  
  <p>Also a similar problem persists when trying to send emails, I am able to send emails from the PHP system using Gmail SMTP details, but not with Microsoft Exchange server</p>
  
  <p>I am still researching but a little help would be much appreciated, maybe if you can just point me in the right direction I'll be able to understand what is wrong with my code. I don't know much about what Microsoft Exchange server is or how it is different from other email providers like Gmail, so I would really appreciate if you can just point me in the right direction.</p>
  
  <p>The attachment retrieval code is working fine for Gmail accounts</p>