[PHP-DEV] Bug #3398 Updated: imap_append not implemented From: Bug Database (php-dev <email protected>)
Date: 02/29/00

ID: 3398
Updated by: hholzgra
Reported By: mike <email protected>
Status: Feedback
Bug Type: IMAP related
Assigned To:
Comments:

Example code please?

i suspect you just used the mailbox name as
mbox parameter instead of the full qualified
form "{servername}path_to_mailbod}"

see example below:

<?php
  $stream = imap_open("{your.imap.host}INBOX.Drafts","username", "password");

  $check = imap_check($stream);
  print "Msg Count before append: ". $check->Nmsgs."\n";

  if(! imap_append($stream,"{your.imap.host}INBOX.Drafts"
      ,"From: me <email protected>\r\n"
      ."To: you <email protected>\r\n"
      ."Subject: test\r\n"
      ."\r\n"
      ."test\r\n"
      ))
    echo "Append faild: ".imap_last_error()."\n";

  $check = imap_check($stream);
  print "Msg Count after append : ". $check->Nmsgs."\n";

  imap_close($stream);
?>

Full Bug description available at: http://bugs.php.net/?id=3398

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>