eae galera...um tempo atráz eu tava com probleema com a função e-mail...vou postar o código ae por dois motivos...1º tirar as dúvidas de quem tava na época tb...e 2º pra algume me ajudar ae...ele tá mandando duas vezes o e-mail...porque? já olhei o cóidigo várias vezes...mas não tem jeito...
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >What would you have done if you had won a trip to Europe last year? </font></div></td>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >How would you describe yourself to a person you met through Internet? </font></div></td>
Pergunta
skolroots
eae galera...um tempo atráz eu tava com probleema com a função e-mail...vou postar o código ae por dois motivos...1º tirar as dúvidas de quem tava na época tb...e 2º pra algume me ajudar ae...ele tá mandando duas vezes o e-mail...porque? já olhei o cóidigo várias vezes...mas não tem jeito...
vlw
<?
$para="giovanim@cetelbrasnet.com.br";
$assunto = "Relatorio das Provas";
$mensagem = "<table width=100% border=0 cellspacing=5 cellpadding=0>
<tr>
<td height=62 colspan=6> <div align=center><strong><font color=#FF6600 size=5 face=sans-serif>Resultado
da Prova on-line</font></strong></div></td>
</tr>
<tr>
<td width=17%><div align=right><font face=sans-serif><strong><font color=#FF6600>Nome:</font></strong></font></div></td>
<td colspan=5><font color=#003399 size=2 face=sans-serif>$nome</font></td>
</tr>
<tr>
<td><div align=right><font face=sans-serif><strong><font color=#FF6600>Sexo:</font></strong></font></div></td>
<td colspan=5><font color=#003399 size=2 face=sans-serif>$vsexo</font></td>
</tr>
<tr>
<td><div align=right><font face=sans-serif><strong><font color=#FF6600>Idade:</font></strong></font></div></td>
<td colspan=5><font color=#003399 size=2 face=sans-serif>$vidade</font></td>
</tr>
<tr>
<td><div align=right><font face=sans-serif><strong><font color=#FF6600>Cargo:</font></strong></font></div></td>
<td colspan= 5 ><font color= #003399 size= 2 face= sans-serif >$vcargo</font></td>
</tr>
<tr>
<td colspan= 3 ><strong><font color= #FF6600 size= 5 face= sans-serif >Totais de
acertos:</font></strong></td>
<td width= 6% > </td>
<td width= 20% > </td>
<td width= 30% > </td>
</tr>
<tr>
<td height= 19 colspan= 2 > <div align= right ><strong><font color= #FF6600 face= sans-serif >Parte
I:</font></strong></div></td>
<td colspan= 3 ><div align= right ><strong><font color= #FF6600 face= sans-serif >Elementary:</font></strong></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$ce</font></td>
</tr>
<tr>
<td height= 19 colspan= 2 > </td>
<td colspan= 3 ><div align= right ><strong><font color= #FF6600 face= sans-serif >Intermediate:</font></strong></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$ci</font></td>
</tr>
<tr>
<td height= 19 colspan= 2 > </td>
<td colspan= 3 ><div align= right ><strong><font color= #FF6600 face= sans-serif >Upper Intermediate:</font></strong></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$ca</font></td>
</tr>
<tr>
<td colspan= 2 ><div align= right ><strong><font color= #FF6600 face= sans-serif >Parte
II:</font></strong></div></td>
<td><div align= right ><strong><font color= #FF6600 face= sans-serif >Certas:</font></strong></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$cp2</font></td>
<td><div align= right ></div></td>
<td> </td>
</tr>
<tr>
<td colspan= 2 > </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan= 6 ><font color= #FF6600 face= sans-serif >Qual a sua maior necessidade
de uso da lingua inglesa?</font></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >$r1</font></td>
</tr>
<tr>
<td colspan= 6 ><font color= #FF6600 face= sans-serif >Quais são as
suas duas maiores dificuldades em relação ao inglês?</font></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >$r2</font></td>
</tr>
<tr>
<td height= 29 colspan= 6 ><strong><font color= #FF6600 size= 5 face= sans-serif >Placement
</font></strong><strong><font color= #FF6600 size= 5 face= sans-serif >Test
</font></strong><strong><font color= #FF6600 size= 5 face= sans-serif >Parte
I</font></strong><strong></strong></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
1:</font></div></td>
<td width= 9% ><font color= #003399 size= 2 face= sans-serif >$rp1</font></td>
<td width= 18% ><div align= right ><font color= #FF6600 face= sans-serif >Questão
13:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp13</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
25:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp25</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
2:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp2</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
14:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp14</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
26:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp26</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
3:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp3</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
15:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp15</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
27:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp27</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
4:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp4</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
16:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp16</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
28:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp28</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
5:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp5</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
17:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp17</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
29:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp29</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
6:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp6</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
18:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp18</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
30:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp30</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
7:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp7</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
19:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp19</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
31:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp31</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
8:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp8</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
20:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp20</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
32:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp32</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
9:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp9</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
21:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp21</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
33:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp33</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
10:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp10</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
22:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp22</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
34:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp34</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
11:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp11</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
23:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp23</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
35:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp35</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
12:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp12</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
24:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp24</font></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height= 30 colspan= 6 ><strong><font color= #FF6600 size= 5 face= sans-serif >Placement
Test </font></strong><strong><font color= #FF6600 size= 5 face= sans-serif >Parte
II</font></strong></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
1:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp36</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
10:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp45</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
19:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp54</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
2:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp37</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
11:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp46</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
20:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp55</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
3:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp38</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
12:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp47</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
21:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp56</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
4:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp39</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
13:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp48</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
22:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp57</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
5:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp40</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
14:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp49</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
23:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp58</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
6:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp41</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
15:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp50</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
24:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp59</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
7:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp42</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
16:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp51</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
25:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp60</font></td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
8:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp43</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
17:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp52</font></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
9:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp44</font></td>
<td><div align= right ><font color= #FF6600 face= sans-serif >Questão
18:</font></div></td>
<td><font color= #003399 size= 2 face= sans-serif >$rp53</font></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan= 6 ><strong><font color= #FF6600 size= 5 face= sans-serif >Placement
Test </font></strong><strong><font color= #FF6600 size= 5 face= sans-serif >Parte
III</font></strong></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Where are you from? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r31</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Whats your job? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r32</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >What do you like doing in your free time? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r33</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Can you describe your family? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r34</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >What did you do last weekend? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r35</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >How often do you practice sports? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r36</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Have you ever been to São Paulo? Why? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r37</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Whatwere you doing yesterday at this time? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r38</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >How long have you studied English? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r39</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >What is your opinion about Brazilian soap operas? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r310</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Which one is your favorite film? Why? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r311</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >Whats the most important quality in a friend? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r312</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >What would you do if you won the Mega Sena? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r313</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >What would you have done if you had won a trip to Europe last year? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r314</font></td>
</tr>
<tr>
<td colspan= 6 ><div align= left ><font color= #FF6600 face= sans-serif >How would you describe yourself to a person you met through Internet? </font></div></td>
</tr>
<tr>
<td colspan= 6 ><font color= #003399 size= 2 face= sans-serif >R: $r315</font></td>
</tr>
<tr>
<td colspan= 6 > </td>
</tr>
</table>";
$headers = "From: CentralStation" .
'X-Mailer: PHP/' . phpversion() . "\r\n" .
"MIME-Version: 1.0\r\n" .
"Content-Type: text/html; charset=utf-8\r\n" .
"Content-Transfer-Encoding: 8bit\r\n\r\n";
if(mail($para, $assunto, $mensagem, $headers)){
echo "deu!";
}
?>
<script language="javascript1.1">
window.close();
</script>
Link para o comentário
Compartilhar em outros sites
1 resposta a esta questão
Posts Recomendados
Participe da discussão
Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.