Name: “.$name.”

\r\n”; echo $message .= “

Email: “.$email.”

\r\n”; echo $message .= “

Phone Number: “.$phone.”

\r\n”; echo $message .= “

IP Address: “.getUserIpAddr().”

\r\n”;// echo $message .= “

Message: “.$msg.” \n\n CRM Contact Status: “.$resp.”

\r\n”; $header = “From:”.$email.” \r\n”; $header .= “CC:vaageshmuttreja@gmail.com \r\n”; $header .= “MIME-Version: 1.0\r\n”; $header .= “Content-type: text/html\r\n”; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo (““); }else { echo (““); }function getUserIpAddr(){ if(!empty($_SERVER[‘HTTP_CLIENT_IP’])){ //ip from share internet $ip = $_SERVER[‘HTTP_CLIENT_IP’]; }elseif(!empty($_SERVER[‘HTTP_X_FORWARDED_FOR’])){ //ip pass from proxy $ip = $_SERVER[‘HTTP_X_FORWARDED_FOR’]; }else{ $ip = $_SERVER[‘REMOTE_ADDR’]; } return $ip; }?>
Message Us on WhatsApp