|
Usted no ha proporcionado toda la información obligatoria:
|
|
|
Información obligatoria esta marcado con *
|
|
* Por Favor, utilize el campo de texto abajo para proporcionar información adicional o comentarios:
|
Adjuntar curriculum
");
?>
Subir curriculum al servidor
Nombre del curriculum adjuntado (mismo nombre que el curriculum subido)
(incluyendo terminación .pdf - Adobe PDF / .doc - Word / .xls - Excel):
|
|
");
}
else {
$email = $e_mail;
if(!$e_mail || !ereg('^[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+'.'@'.'[-!#$%&\'*+\\/0-9=?A-Z^_`a-z{|}~]+\.'.'[-!#$%&\'*+\\./0-9=?A-Z^_`a-z{|}~]+$', $email)) {
print("
|
"$e_mail" no es una dirección de e-mail válida:
|
|
Información obligatoria esta marcado con *
|
|
* Por Favor, utilize el campo de texto abajo para proporcionar información adicional o comentarios:
|
Adjuntar curriculum
");
?>
Subir curriculum al servidor
Nombre del curriculum adjuntado (mismo nombre que el curriculum subido)
(incluyendo terminación .pdf - Adobe PDF / .doc - Word / .xls - Excel):
|
|
");
}
else {
if(strstr($name, 'http://') || strstr($name, 'url=') || strstr($name, '.html') || strstr($name, '@') || strstr($name, 'www') || strstr($name, 'LINK') || strstr($name, 'http') || strstr($name, 'http://') || strstr($comments, 'http://') || strstr($comments, 'url=') || strstr($comments, '.html') || strstr($comments, 'www') || strstr($comments, 'LINK') || strstr($comments, 'http')) {
print("");
}
else {
$datestamp = date ("j/n/Y");
$timestamp = date('g:i a');
$fileatt = "curriculums/$attachment_doc";
$fileatt_type = "application/octet-stream";
$fileatt_name = "$attachment_doc";
$email_from = "$e_mail";
$email_subject = "Solicitud de empleo - Curriculum de $name";
$email_message = "
Curriculum de $name
Fecha y hora: $datestamp, $timestamp
Nombre completo: $name
Teléfono: $telephone
Dirección de E-mail: $e_mail
Comentarios:
$comments
|
";
$email_to = "
[email protected]";
$headers = "From: ".$email_from;
$semi_rand = md5(time());
$mime_boundary = "==Multipart_Boundary_x{$semi_rand}x";
$headers .= "\nMIME-Version: 1.0\n" .
"Content-Type: multipart/mixed;\n" .
" boundary=\"{$mime_boundary}\"";
$email_message .= "This is a multi-part message in MIME format.\n\n" .
"--{$mime_boundary}\n" .
"Content-Type:text/html; charset=\"iso-8859-1\"\n" .
"Content-Transfer-Encoding: 7bit\n\n" .
$email_message . "\n\n";
$fileatt = "curriculums/$attachment_doc";
$fileatt_type = "application/octet-stream";
$fileatt_name = "$attachment_doc";
$file = fopen($fileatt,'rb');
$data = fread($file,filesize($fileatt));
fclose($file);
$data = chunk_split(base64_encode($data));
$email_message .= "--{$mime_boundary}\n" .
"Content-Type: {$fileatt_type};\n" .
" name=\"{$fileatt_name}\"\n" .
//"Content-Disposition: attachment;\n" .
//" filename=\"{$fileatt_name}\"\n" .
"Content-Transfer-Encoding: base64\n\n" .
$data . "\n\n" .
"--{$mime_boundary}\n";
unset($data);
unset($file);
unset($fileatt);
unset($fileatt_type);
unset($fileatt_name);
$ok = @mail($email_to, $email_subject, $email_message, $headers);
}
print("
$name, gracias por su solicitud
Su solicitud se envió correctamente. Estaremos en contacto con usted, por e-mail ($e_mail) o teléfono ($telephone).
Ir a la página principal
|
");
}
}
}
else {
print("
|
Para enviar sus datos y curriculum en busca de empleo con General Resource League, por favor utiliza el formato a continuación:
|
|
Información obligatoria esta marcado con *
|
|
* Por Favor, utilize el campo de texto abajo para proporcionar información adicional o comentarios:
|
Adjuntar curriculum
");
?>
Subir curriculum al servidor
Nombre del curriculum adjuntado (mismo nombre que el curriculum subido)
(incluyendo terminación .pdf - Adobe PDF / .doc - Word / .xls - Excel):
|
|
");
}
?>