Problem with IMAP_HEADERS

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ashutosh

    Problem with IMAP_HEADERS

    Hi,
    i am trying to create a script for retrieving emails from a mail
    server.


    While I am able to establish a connection to the server, the
    imap_headers() does not return anything. i checked the mailbox on
    server which shows that I have 2 emails and if i am correct,the
    function should return 2.
    Please can anybody help me with this..


    Cheers,
    Ashutosh

  • Kartic

    #2
    Re: Problem with IMAP_HEADERS

    Ashutosh,

    Could you please post your code snippet and also furnish details about
    the IMAP server you are connecting to?

    Your post has very little information to really give any suggestions.
    Thanks,
    --Kartic

    Comment

    • R. Rajesh Jeba Anbiah

      #3
      Re: Problem with IMAP_HEADERS

      Ashutosh wrote:[color=blue]
      > While I am able to establish a connection to the server, the
      > imap_headers() does not return anything. i checked the mailbox on
      > server which shows that I have 2 emails and if i am correct,the
      > function should return 2.[/color]

      Manual is your friend <http://in.php.net/imap_headers> The function
      should return an array. Please enable full error reporting.

      --
      <?php echo 'Just another PHP saint'; ?>
      Email: rrjanbiah-at-Y!com Blog: http://rajeshanbiah.blogspot.com/

      Comment

      Working...