connect(); ///////////GET HTTP VARIBALES./////////////////////// $company_name = $_REQUEST['company_name']; $contact_person = $_REQUEST['contact_person']; $address = $_REQUEST['address']; $phone = $_REQUEST['phone']; $area = $_REQUEST['area']; $mobile = $_REQUEST['mobile']; $area_of_business = $_REQUEST['area_of_business']; $items = $_REQUEST['items']; $color = $_REQUEST['color']; $amount = $_REQUEST['amount']; $chkbox = $_REQUEST['chkbox']; $chkbox_new = array(); for ($i=0;$i"; $body .= "".$color[$i].""; $body .= "".$amount[$i].""; $body .= ""; } } $body .= "
"; $body .= "

Thank You
Admin"; $host = "mail.familyofdisabled.org"; $username = "admin@familyofdisabled.org"; $password = "mailpop"; $headers = array ('From' => $from, 'To' => $to, 'Subject' => $subject, 'Content-Type' =>'text/html'); $smtp = Mail::factory('smtp', array ('host' => $host, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $body); if (PEAR::isError($mail)) { $success_msg = ("

" . $mail->getMessage() . "

"); } else { $success_msg = ("

Message successfully sent!

"); } ?> Advertise with FOD