Re: imap_mail_compose not working

From: Date: Thu, 16 Mar 2006 00:53:07 +0000
Subject: Re: imap_mail_compose not working
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231988@lists.php.net to get a copy of this message
Karel Kozlik wrote:
Hi All, function imap_mail_compose() not working on my server. This script: <?
    $envelope["From"]="kk@kufr.cz";
    $envelope["To"]="karel@iptel.org";
    $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/

« previous php.general (#231988) next »