query($query); $genID = mysql_insert_id(); if ($_FILES['uploadFiles']['tmp_name'] != "") { $ftmp = $_FILES['uploadFiles']['tmp_name']; $fname = $genID . "_" . $_FILES['uploadFiles']['name']; $file_size=$_FILES['uploadFiles']['size']/1024; $extension = strtolower(substr(strrchr($fname, '.'), 1)); $allowedExts = array("pdf", "doc", "docx", "xls", "xlsx", "csv", "zip"); if ($err == false) { if (in_array($extension, $allowedExts)) { if($file_size<5000){ move_uploaded_file($ftmp, 'upload/resume/' . $fname); $query1 = "update " . $table['hireme'] . " set file_url='upload/resume/$fname' where pkid=$genID"; $database->query($query1); }else{ echo ''; $err=true; } } else { echo ''; } } } if($err==false){ $fromName = "Sovo"; $fromEmail = "info@sovo.biz"; $site_URL = "http://www.sovo.biz"; $current_time = date("D dS M,Y h:i:s a"); $ip_address = query_client_ip(); $mail = new PHPMailer(); // create a new object $mail->IsSMTP(); // enable SMTP $mail->Host = '128.199.138.195'; $mail->Port = '587'; $mail->Username = "contest@fb-apps.com.my"; // SMTP account username $mail->Password = "decubic4410"; // SMTP account password $mail->SMTPAuth = true; // enable SMTP authentication $mail->SetLanguage("en", 'sysadmin/include/phpmailer/language/'); $mail->From = $fromEmail; $mail->FromName = $fromName; $mail->AddReplyTo("info@sovo.biz"); $mail->IsHTML(true); $mail->Subject = "New Job Application from www.sovo.biz"; $message2 .=""; $message2 .="
"; $message2 .=""; $message2 .= "Dear admin,

"; $message2 .= "This is to notify you there is an new Job Application submitted at www.sovo.biz
"; $message2.="
Details:
"; $message2.="Apply For: $job
"; $message2.="Name: $name
"; $message2.="Email: $email
"; $message2.="Phone: $phone
"; if ($ftmp != "") { $message2.="Resume: View

"; } else { $message2.="Resume: -No File Uploaded-

"; } $message2 .= "Date / Time: " . $current_time . "
"; $message2 .= "IP Address: " . $ip_address . "
"; $message2 .= "

"; $message2.= "Sincerely,
"; $message2 .= "" . $fromName . "
"; $message2 .= $site_URL . "
"; $message2 .= "

"; $mail->Body = "" . $message2 . ""; $toEmail = array('info@sovo.biz'); $toBCC = array("vincentlee@decubic.com", "clarislew@decubic.com"); for ($i = 0; $i < count($toEmail); $i++) { $thesendingto = $toEmail[$i]; $mail->AddAddress($thesendingto); } for ($a = 0; $a < count($toBCC); $a++) { $thesendingto1 = $toBCC[$a]; $mail->AddBCC($thesendingto1); } if (!$mail->Send()) { echo "Mailer Error: " . $mail->ErrorInfo; } else { echo ''; } } } } ?> Hire Me Form

Submit your Resume

Apply For : *
 
*
 
*
 
 

1 file only, max file size 5mb, file format: pdf, doc, docx, xls, xlsx, csv, zip.