file_get_contents($file),"name" => $filename); } else { $attachments[] = array("string" => file_get_contents($_FILES['CV']['tmp_name']),"name" => $_FILES['CV']['name']); } unlink($image_path."/".$tmp_img_name); } } $message .= ""; $message .= ""; $message .= ""; $message .= ""; $message .= ""; $message .= ""; $message .= "
Firstname ".$_POST['First_Name']."
Surname ".$_POST['Surname']."
Contact Number ".$_POST['Contact_Number']."
ID Number ".$_POST['ID_Number']."
Drivers License ".$_POST['Drivers_License']."
"; $user_subject = "Employment Application: "; if (sendEmail("saint@intrigue.co.za",$user_subject,$message,$attachments)) { print ""; } } function sendEmail($to_address,$subject,$html,$attachments = false,$from_address = "cvs@bodyguardservices.co.za",$from_name = "CV Applications") { require_once('scripts/class.phpmailer.php'); $body = "
$html

"; $mail = new PHPMailer(); $mail->IsSMTP(); $mail->SMTPAuth = true; $mail->Host = "smtp.jdconsulting.co.za"; $mail->Username = "gs001"; $mail->Password = "GSvs01"; $mail->Port = 25; if (is_array($to_address)) { foreach ($to_address as $address) { $mail->AddAddress($address); } } else { $mail->AddAddress($to_address); } if ($attachments) { foreach ($attachments as $attachment) { $mail->AddStringAttachment($attachment['string'],$attachment['name']); } } $mail->Subject = $subject; $mail->Body = $body; $mail->IsHTML(true); if(!$mail->Send()) { die ($mail->ErrorInfo); return false; } return true; } ?>

EMPLOYMENT OPPORTUNITIES WITH BODYGUARD SERVICES

Please fill out the form below

 

 

   
First Name
Surname
Contact Number
ID Number
Drivers License?
Attach C.V.