imap_mail_compose not working

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

 



 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:


MIME-Version: 1.0
Content-Type: MULTIPART/mixed; BOUNDARY="-708698681-1804289383-1142442189=:14362"

---708698681-1804289383-1142442189=:14362
Content-Type: TEXT/plain; CHARSET=US-ASCII

asdfjaskdfhjk
---708698681-1804289383-1142442189=:14362
Content-Type: TEXT/html; CHARSET=US-ASCII

sdafjaasdjkjdfka
---708698681-1804289383-1142442189=:14362--



I am trying php4 and php5 on windows but with no success.

Any ideas what may be wrong?

regards Karel

--
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