<?php
		 
			function sign_up_step2($email,$link)
			{
			    global $SITE_NAME;
                global $server_url;
             $message="
			<div class=''>
			<p style='font-size: 14px; color:#444; margin-bottom: 10px; margin-top: 9px;'>Hello ".$name.",</p>
			<p  style='font-size: 14px; color:#444; margin-bottom: 10px; padding:0; line-height:24px'>Just click the button below (it only takes a couple of seconds). You won't be asked to log in as its simply a verification of the ownership of this email address.</p>
			<button type='button' style='display: block; margin:20px auto 15px auto; background-color: #c70048; font-size: 14px; padding: 11px 40px; border: none; border-radius: 5px; color: #fff; font-family: 'Open Sans', sans-serif; font-weight: 600;'>
			<a href=$link style='color:#c70048; display:block; font-width:bold; text-decoration: none; cursor: pointer;'>Verify Email</a></button>
			</div>

			<div class='clearfix'></div>
			<div style=' padding: 18px 0px;'>
				<div class=''>
				  <h3 style='color:#444; font-weight: 700; font-size: 18px; margin: 0;'> Benefits </h3>
				</div>
				<div class='clearfix'></div> 
			</div>
			<div class='verify' style='background-color: #f2f2f2; padding: 15px;'>  
			  <div class=''>
				  <h4 style='  color: #444; font-size: 16px; font-weight: 700;'>Why Verify?</h4>
				  <p style=' '>Verifying your email lets you see all your Ads, chat messages and own your account.</p>
			  </div>
			  <div class=''>
				  <h4 style=' color: #444; font-size: 16px; font-weight: 700;'>Button not working?</h4>
				  <p style=''>If the above button is not working then verify your email address by pasting the below link into your browser:</p>
				 <p> <a href=$link style=' word-break: break-all;'>Link</a></p>
			  </div>
			  <div class='clearfix'></div>
			</div>
			<div style='margin-top: 20px;'>
			  <div class=''>
				  <p style='margin-bottom: 0px;'>Thank you,</p>
				  <p><b>$SITE_NAME Team</b></p>
			  </div>
			</div>
			<div class='clearfix'></div>
			</div>
           "; 
 
 			 
			$to = $email;
		    $subject = "Verify Email ID";//"Thanks for registration on $SITE_NAME";     
		    $attachment='';
			SendMail($to,$subject,$message,4,$attachment);
			}
			
			
            function ResetPassowd($to,$subject,$new_password)
            {
                 global $SITE_NAME;
                 global $server_url;
               $message="
		<div class=''>
		<p style='font-size: 14px; color:#444; margin-bottom: 10px; margin-top: 9px;'>Hello ".$name.",</p>
		<p  style='font-size: 14px; color:#444; margin-bottom: 10px; padding:0; line-height:24px'><b>Welcome </b>, to $SITE_NAME.  </p> 
		</div>

		<div class='clearfix'></div>
		<div style=' padding: 18px 0px;'>
			<div class=''>
			  <h3 style='color:#444; font-weight: 700; font-size: 18px; margin: 0;'> Your   password has been reset as follows </h3>
			</div>
			<div class='clearfix'></div> 
		</div>
		<div class='verify' style='background-color: #f2f2f2; padding: 15px;'>  
		  <div class=''> 
			  <p style=' '> <b>$new_password </b> kindly use this password and login in  your account.</p>
		  </div> 
		  <div class='clearfix'></div>
		</div>
		<div style='margin-top: 20px;'>
		  <div class=''>
			  <p style='margin-bottom: 0px;'>Thank you,</p>
			  <p><b>$SITE_NAME Team</b></p>
		  </div>
		</div>
		<div class='clearfix'></div>
		</div>
       ";        
        SendMail($to,$subject,$message,2,$attachment);
        }
        
        function PostJob($to,$subject,$name,$catgory_name,$heading,$city_name)//post JOB
        {
            global $SITE_NAME;
            global $server_url;  
          
        	$message="
    		<div class=''>
    		<p style='font-size: 14px; color:#444; margin-bottom: 10px; margin-top: 9px;'>Hello ".$name.",</p>
    		</div>
    
    		<div class='clearfix'></div>
    		<div style=' padding: 18px 0px;'>
    			<div class=''>
    			  <h3 style='color:#444; font-weight: 700; font-size: 18px; margin: 0;'> Your job has been posted!!!  </h3>
    			</div>
    			<div class='clearfix'></div> 
    		</div>
    		<div class='verify' style='background-color: #f2f2f2; padding: 15px;'>  
    		  <div class=''> 
    			  <p style=' '> <b>Role :</b> ".$catgory_name."</p>
    			  <p style=' '> <b>Job Heading :</b> ".$heading."</p>
    			  <p style=' '> <b>City Name :</b> ".$city_name."</p>
    		  </div> 
    		  <div class='clearfix'></div>
    		</div>
    		<div style='margin-top: 20px;'>
    		  <div class=''>
    			  <p style='margin-bottom: 0px;'>Thank you,</p>
    			  <p><b>$SITE_NAME Team</b></p>
    		  </div>
    		</div>
    		<div class='clearfix'></div>
    		</div>
           ";  
           SendMail($to,$subject,$message,2,$attachment); 
        }
        
        function creatAlert($to,$subject,$name,$job_type,$catgory_name,$city_name,$loc_name)
        {      
            global $SITE_NAME;
            global $server_url;
            
         
             $message="
    			<div class=''>
    			<p style='font-size: 14px; color:#444; margin-bottom: 10px; margin-top: 9px;'>Hello ".$name.",</p>
    			 
    			</div>
    
    			<div class='clearfix'></div>
    			<div style=' padding: 18px 0px;'>
    				<div class=''>
    				  <h3 style='color:#444; font-weight: 700; font-size: 18px; margin: 0;'> Hi, You have created alert for $catgory_name  </h3>
    				</div>
    				<div class='clearfix'></div> 
    			</div>
    			<div class='verify' style='background-color: #f2f2f2; padding: 15px;'>  
    			  <div class=''> 
    				  <p style=' '> <b>Job Type :</b> ".$job_type."</p>
        			  <p style=' '> <b>Role :</b> ".$catgory_name."</p>
        			  <p style=' '> <b>City Name :</b> ".$city_name."</p>
        			   $loc_name
    			  </div> 
    			  <div class='clearfix'></div>
    			</div>
    			<div style='margin-top: 20px;'>
    			  <div class=''>
    				  <p style='margin-bottom: 0px;'>Thank you,</p>
    				  <p><b>$SITE_NAME Team</b></p>
    			  </div>
    			</div>
    			<div class='clearfix'></div>
    			</div>  
           ";    
         SendMail($to,$subject,$message,2,$attachment);    
        }
?>			
