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: [EMAIL PROTECTED]\r\nTo: 
[EMAIL PROTECTED]\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

Reply via email to