“; $msg .=”Name :      “.$name.”\r\n
“; $msg .=”Email Id :      “.$email.”\r\n
“; $msg .=”Mobile No. :      “.$code.$mobile.”\r\n
” ; $msg .=”Description :      “.$desc.”\r\n
“; //$msg .= ‘ ‘; //$msg = ‘Client Details \n Name : ‘.$name.’\n Email : ‘.$email.’\n Mobile No : +’$code.’ ‘.$mobile.’\n Description :’.$desc; $headers .= “MIME-Version: 1.0\r\n”; $headers .= “Content-Type: text/html; charset=ISO-8859-1\r\n”; mail(“contact@appsrhino.com”,$subject,$msg,$headers); //contact@appsrhino.com $url = ‘http://relinns.co/SuiteCRM/api/api.php’; $fields = array( “action” => $action, “first_name” => $name, “last_name” => ‘appsrhino’, “phone” => $mobile, “email” => $email ); //url-ify the data for the POST foreach($fields as $key=>$value) { $fields_string .= $key.’=’.$value.’&’; } rtrim($fields_string, ‘&’); //open connection $ch = curl_init(); //set the url, number of POST vars, POST data curl_setopt($ch,CURLOPT_URL, $url); curl_setopt($ch,CURLOPT_POST, count($fields)); curl_setopt($ch,CURLOPT_POSTFIELDS, $fields_string); //execute post $result = curl_exec($ch); //close connection curl_close($ch); echo ‘‘; } else { echo ‘‘; } } ?>