include "adm/class.php";
$title="Trabalhe Conosco";
if($_REQUEST["nome"]){
$nome = $_REQUEST["nome"];
$email = $_REQUEST["email"];
$fone = $_REQUEST["ddd"]."-".$_REQUEST["telefone"];
//$assunto = $REQUEST["assunto"];
//$mensagem = $REQUEST["mensagem"];
$subject = "Site - Currículo";
//$from ="teste@fda.com.br";
$corpo = "Nome:$_POST[nome]
E-mail: $_POST[email]
Telefone: $_POST[ddd]-$_POST[telefone]
Mini currículo: $_POST[mensagem]";
$bound = "XYZ-" . date("dmYis") . "-ZYX";
$fp = fopen($_FILES['arquivo']['tmp_name'],"rb");
$anexo = fread($fp,filesize($_FILES['arquivo']['tmp_name']));
$anexo = base64_encode($anexo);
fclose($fp);
$anexo = chunk_split($anexo);
$mensagem = "--$bound\nContent-type: text/html\nContent-Transfer-Encoding: 7bit\n\n$corpo\n\n"
. "--$bound\nContent-type: $_FILES[arquivo][type]\nContent-Disposition: attachment; filename=" . $_FILES['arquivo']['name'] . "\nContent-Transfer-Encoding: base64\n\n$anexo\n"
. "--$bound\r\n";
if(mail($emailTrabalho,$subject,$mensagem,"From: $_POST[email]\nMIME-Version: 1.0\nContent-type: multipart/mixed; boundary=\"$bound\"")){
//mail("rogerio@splicenet.com.br",$subject,$mensagem,"From: $_POST[email]\nMIME-Version: 1.0\nContent-type: multipart/mixed; boundary=\"$bound\"");
print "";
}else
print "";
//die();
}
?>
Fundação Dom Aguirre :::...
Seja bem-vindo! Você está em » echo $title; ?> |
|
|
|
|
include ("menu.php"); ?> |
include ("saudacao.php"); ?> |
|
|
|
Endereço: Rod. Raposo Tavares, km 92.5 - Sorocaba/SP
CEP: 18023-000
Telefone: (15) 2101-7000
|
|
|
|
|
|
|
include ("rodape.php"); ?> |