imap_append
| From: | Jeff Schwartz | Date: | Fri, 14 Feb 2003 22:30:22 +0000 |
| Subject: | imap_append | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-135609@lists.php.net to get a copy of this message | ||
I'm unable to append using imap_append. I can access the account without a problem but the
append fails. Any ideas?
<?php
$mailserver = "supercalendar.com";
$port = 120;
if ($stream = imap_open("{".$mailserver."/pop3:$port/notls}",$login,$password)):
if (imap_append($stream,"{".$mailserver."}INBOX","From:
me@my.host\r\nTo: you@your.host\r\nSubject: test\r\n\r\nthis is a test message, please
ignore\r\n")):
echo "good";
else:
echo "bad";
endif;
imap_close($stream);
else:
echo "Unable to open mailbox";
endif;
?>
---------------------------------
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day