Read outlook email RRS feed

  • Question

  • User-148788041 posted
    I want to read outlook email with subject or body.
    If i use forach(var s in mailitem)

    It reads only few emails.
    Also tried
    String s=outlook.mail item(i).subject in for loop.it throws error
    Thursday, July 26, 2018 7:25 AM

All replies

  • User753101303 posted


    Always tell which error you have.

    You are trying to use Outlook automation ? It would need Outlook to be installed on the web server and this kind of app was never intended to be used as a programming library.

    My personal preference would be to directly access to the mail server using its API (which kind of mail server it is ?) rather than going through an end user application.

    Thursday, July 26, 2018 7:36 AM
  • User1724605321 posted

    Hi Guhananth ,

    It reads only few emails.

    Please explain more about your problem . What do you mean by "only few emails" ? Not all emails in email folder returned ? And what is the error using loop and which api you are using ?

    Best Regards,

    Nan Yu

    Friday, July 27, 2018 6:20 AM