'; $body.='Company Name: '.@$_POST['company'].'
'; $body.='Contact Name: '.@$_POST['name'].'
'; $body.='Telephone: '.@$_POST['tel'].'
'; $body.='Mobile: '.@$_POST['cell'].'
'; $body.='Email: '.@$_POST['email'].'
'; $body.='Skype: '.@$_POST['skype'].'
'; $body.='Project Name / Title:'.@$_POST['project'].'
'; $body.='Product: '.@$_POST['product'].'
'; $body.='Intended shooting dates (approx.): '.@$_POST['dates'].'
'; $body.='Number of shoot days: '.@$_POST['days'].'
'; $body.='Deadline of budget: '.@$_POST['deadline'].'

'; $body.='Director: '.@$_POST['speakhebrew'].'
'; $body.='Write Hebrew: '.@$_POST['writehebrew'].'
'; $body.='Understand French: '.@$_POST['underfrench'].'
'; $body.='Speak French: '.@$_POST['speakfrench'].'
'; $body.='Write French: '.@$_POST['writefrench'].'
'; $body.='Understand Dutch: '.@$_POST['underdutch'].'
'; $body.='Speak Dutch: '.@$_POST['speakdutch'].'
'; $body.='Write Dutch: '.@$_POST['writedutch'].'
'; $body.='Workpermit: '.@$_POST['workpermit'].'
'; $body.='Willing to relocate: '.@$_POST['relocate'].'
'; $body.='Work shifts: '.@$_POST['shifts'].'
'; $body.='Weekends, holidays & night shifts: '.@$_POST['afterhours']? '; $body.='Notice period: '.@$_POST['noticeperiod'].'
'; $body.='Comment: '.@$_POST['comment'].'
'; $body.='Referral: '.@$_POST['referral'].''; $body.=''.@$_POST['advertisment'].','; $body.=''.@$_POST['magazine'].','; $body.=''.@$_POST['internet'].','; $body.=''.@$_POST['event'].','; $body.=''.@$_POST['poster'].','; $body.=''.@$_POST['friend'].',
'; $body.='Name of Friend: '.@$_POST['friendname'].'
'; $body.=''; if (@$_FILES['cv_file']['size']>0 and $error_str=='') { $file_base_name=basename($_FILES['cv_file']['name']); $temp_path =$_FILES['cv_file']['tmp_name']; $file_size =$_FILES['cv_file']['size']; $temp=explode(".",$file_base_name); $file_ext=strtolower($temp[count($temp)-1]); switch($file_ext) { case 'pdf' : break; case 'doc' : break; case 'xls' : break; case 'ppt' : break; default: $error_str.='
'.'Upload File is not a supported filetype. Please upload a PDF, DOC, PPT or a XLS file. Thanks. '; break; } if ($file_size<$max_file_size and $error_str=='') { $attach_file=$temp_path; $attach_file_name=$file_base_name; } else { $error_str.='
File['.$file_base_name.'] size['.round($file_size/1000,1).'Kb] greater than maximum allowed['.($max_file_size/1000).'Kb] '; } } if (!send_email2($mail_from,$mail_to,$subject,$body,$attach_file,$attach_file_name,'HTML')) { $error_str.='Error sending email! please try again later'; } else { header('location: apply_success.php'); exit; } } ?>