Reply to help on "Array to string conversion" warning when use mail()

Your name:

Reply:


Posted by cchereTieShou on 04/05/05 21:39

I am using the mail() function to send a quite simple email but always
get warning message as "Notice: Array to string conversion" at this
line "if(mail($MailTo, $MailSubj, $MailCon,
$MailH,"-fbounce@myhost.com")){" in the following php code.

I don't see where is the Array at all. Appreciated for helps

<?php
error_reporting(E_ALL);

$FromName="tieshou";
$MailFrom="xxxxx@xxxxxxxxx.com";
$MailTo="XXXX@yahoo.com";
$MailSubj="This is just a test for sending out email purpose";
$MailCon="This is a somehting to test out";

$MailH = "MIME-Version: 1.0\r\n";
$MailH .= "From: $FromName <$MailFrom>\r\n";
$MailH .= "Reply-to: $FromName <$MailFrom>\r\n";
$MailH .= "X-Priority: 3\r\n";
$MailH .= "X-Mailer: PHP mailer\r\n";
if(mail($MailTo, $MailSubj, $MailCon, $MailH, "-fbounce@myhost.com")){
echo "sending out succeessfully";
}else{
echo "Can't send out for some reason.";
}
?>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация