|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-02-03 21:41 UTC] mike at bedarra dot com
Calling imap_append fails to append the message. The server logs show no APPEND request being received. Also imap_append is returning null rather than a boolean. Using imap 4.7a. PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 23:00:01 2025 UTC |
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@my.host\r\n" ."To: you@your.host\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); ?>