eu fiz tudo que estava no comentário a pareceu esse erro
Parse error: syntax error, unexpected 'trabalho06' (T_STRING) in E:\EasyPHP-Devserver-17\eds-www\enviar.php on line 60
o mail estar certo
olhem o código e veja o que estar errado por favor
<?php
//Variáveis
$nome = $_POST['nome'];
$email = $_POST['email'];
$telefone = $_POST['telefone'];
$opções = $_POST['escolhas'];
$mensagem = $_POST['msg'];
$data_envio = date('d/m/Y');
$hora_envio = date('H:i:s');
// Compo E-mail
$arquivo = "
<style type='text/css'>
body {
margin:0px;
font-family:Verdane;
font-size:12px;
color: #666666;
}
a{
color: #666666;
text-decoration: none;
}
a:hover {
color: #FF0000;
text-decoration: none;
}
</style>
<html>
<table width='510' border='1' cellpadding='1' cellspacing='1' bgcolor='#CCCCCC'>
<tr>
<td>
<tr>
<td width='500'>Nome:$nome</td>
</tr>
<tr>
<td width='320'>E-mail:<b>$email</b></td>
</tr>
<tr>
<td width='320'>Telefone:<b>$telefone</b></td>
</tr>
<tr>
<td width='320'>Opções:$escolhas</td>
</tr>
<tr>
<td width='320'>Mensagem:$nome</td>
</tr>
</td>
</tr>
<tr>
<td>Este e-mail foi enviado em <b>$data_envio</b> às <b>$hora_envio</b></td>
</tr>
</table>
</html>
//enviar
// emails para quem será enviado o formulário
$emailenviar = "
[email protected]";
$destino = $emailenviar;
$assunto = "Contato pelo Site";
// É necessário indicar que o formato do e-mail é html
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'From: $nome <$email>';
//$headers .= "Bcc: $EmailPadrao\r\n";
$enviaremail = mail($destino, $assunto, $arquivo, $headers);
if($enviaremail){
$mgm = "E-MAIL ENVIADO COM SUCESSO! <br> O link será enviado para o e-mail fornecido no formulário";
echo " <meta http-equiv='refresh' content='10;URL=contato.php'>";
} else {
$mgm = "ERRO AO ENVIAR E-MAIL!";
echo "";
}
?>
e o php.ini
[mail function]
; For Win32 only.
; http://php.net/smtp
SMTP = smtp.outlook.com
; http://php.net/smtp-port
smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from =
[email protected]
obigado