Re: Mail() function
| From: | Rick Emery | Date: | Mon, 28 Oct 2002 18:48:29 +0000 |
| Subject: | Re: Mail() function | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-121767@lists.php.net to get a copy of this message | ||
I don't know what "Formulário de Cadastro" is, but it doesn't belong as fourth
parameter.
That parameter is for From, CC, BCC headers
----- Original Message -----
From: "Rodrigo de Oliveira" <thenewsource@ieg.com.br>
To: <php-general@lists.php.net>
Sent: Monday, October 28, 2002 12:39 PM
Subject: [PHP] Mail() function
Hi guys I'm having the following problem:
I have a mail() function that works by itself, coming from a html form, but when i tryied
to put it inside a more complex script it doesn't work.
The script is at the end of the message and it is suposed to receive data from a html form
and use it to insert data into a mySql database, wich it does without problems, and it is
suposed to send an e-mail to certain email with the info that was received from the form.
The data is inserted without problem into the MySql database, but the e-mail is not sent
to the email informed in the mail() script.
Rodrigo
SCRIPT:
<?
include "db_dados.php";
?>
<?
$sql="INSERT INTO tb_tao(nome, prof, area, tel, email, celular, registro, status) VALUES
('$nome','$prof','$area','$tel','$email','$celular','$registro','$status')";
$res=@mysql_query($sql,$id);
?>
<?
$Destino = "taocenter@rrb3.com";
$Remetente = "Formulário de Cadastro";
$Assunto = "Profissional Adicionado";
$Mensagem = "teste";
mail($Destino,"$Assunto",$Mensagem,"$Remetente");
?>
<meta http-equiv="refresh" content="1; URL=cadastrando.htm">