0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.147.48.226


Current Path : /proc/thread-self/root/var/www/html/phdadm/pgetadm/
Upload File :
Current File : //proc/thread-self/root/var/www/html/phdadm/pgetadm/leaddetmail.php

<?php

function leaddetmail($aobj_context,$univcode,$onldate,$fname,$fmobile,$femail,$fdegree,$fadmname,$fadmemail,$flink)
{   
    if (!empty($_SERVER['HTTP_CLIENT_IP']))   
    {
        $ip_address = $_SERVER['HTTP_CLIENT_IP'];
    }
    else if (!empty($_SERVER['HTTP_X_FORWARDED_FOR']))  
    {
        $ip_address = $_SERVER['HTTP_X_FORWARDED_FOR'];
    }
    else
    {
        $ip_address = $_SERVER['REMOTE_ADDR'];
    }
    $fsubj = "New Lead Details";
    $logo = "https://universitysolutions.in/admission/img/".$univcode."_logo.jpg";

    $message="<html>";
    $message.="<body>";
    $message.="<style>";		
    $message.=".mail_tbl td{ text-align:left; padding:2px; font-size:12px; 
            font-family: Verdana, Arial, Helvetica, sans-serif;";	
    $message.="</style>";
    $message.="<div ><img src='{$logo}' height='100px' width='250px' /></div>";

    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif; text-align:right'>Date.:"." $onldate "."</p>";

    $message.="<p style='line-height: 0;'><b>Dear "."$fadmname".",</b><br></p>";

    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>
    You have received a new lead from ".$flink." for ".$fdegree."</p>";

    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>
    Lead Source: "."$flink".".</p>";
    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>
    Lead Name: "."$fname".".<br></p>";  
    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>
    Phone Number : "."$fmobile".".<br></p>";  
    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>
    Email ID: "."$femail".".</p>";  

    $message.="<p style='font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif'>
    Best Regards,</p>";

    $message.="</body>";
    $message.="</html>";

    $subject= strtoupper($fsubj); 
    $from = "Admissions@harshaintitutions.com";
    
    $resp = sendGridMail($fadmemail,$subject,$message,$univcode); 

    return ;

}
?>