"olusabel@gmail.com"); $subject="Partner Enrollment"; $subHeader=array("CML Partnership"=>'noreply@christmercyland.org'); $message="
Partner Enrollment Details
Name $name
Phone $phone
Email $email
Country $country
Partnerhip $partnership
Plegde $amountMail
"; mailer($to,$subject,$message,$subHeader); $pageContent='
Pay Now
'; } else { $pageContent='

Apply Partnership


There are three categories of Mercy TV Partners, which includes: Silver, Gold, and Diamond partner;

Will contact you for more details   For Assistance Dail*** 08137788601

'; } /** * used to send mail * @param array $to an array('name'=>'email') that contains the list of receipent * @param string $subject the subject of the email been sent * @param string $message the body of the email been sent * @param array $subHeader an array('FromName'=>email,'CcName'=>email,'BccName'=>email) that contain more info need in the header * @param string $charset the charset to be support by email reader * @return boolean $sent true if mail is send out of the server and false otherwise */ function mailer($to,$subject,$message,$subHeader,$charset='charset=iso-8859-1'){ $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= "Content-type: text/html; $charset" . "\r\n"; $recepient=""; foreach ($to as $name => $email) { $recepient.="$name <$email>, "; } $recepient=rtrim($recepient, ", "); // Additional headers $headers .= "To: $recepient" . "\r\n"; $kanter=0; foreach ($subHeader as $key => $email) { if($kanter==0) $headers .= "From: $key <$email>" . "\r\n"; if($kanter==1) $headers .= "Cc: $key <$email>" . "\r\n"; if($kanter==2) $headers .= "Bcc: $key <$email>" . "\r\n"; ++$kanter; } // Mail it $sent=mail($recepient, $subject, $message, $headers); return $sent; } ?> Christ MercyLand