Re: imap_mail_compose not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Karel Kozlik wrote:
 Hi All,
function imap_mail_compose() not working on my server. This script:

<?
    $envelope["From"]="kk@xxxxxxx";
    $envelope["To"]="karel@xxxxxxxxx";

    $part1["type"]=TYPEMULTIPART;
    $part1["subtype"]="mixed";

    $part2["type"]=TYPETEXT;
    $part2["subtype"]="plain";
    $part2["contents.data"]="asdfjaskdfhjk";

    $part3["type"]=TYPETEXT;
    $part3["subtype"]="html";
    $part3["contents.data"]="sdafjaasdjkjdfka";

    $body[1]=$part1;
    $body[2]=$part2;
    $body[3]=$part3;

echo    $mail=imap_mail_compose($envelope, $body);
?>

return only one line:
--117491828-5973-1142442255=:332--


altouch when I run this script on another server it correctly return this:

What version of imap do you have on both servers?

Maybe one is older and has some bugs that have been fixed.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux