0
I have a problem sending email with AddAdress
in my file php that is receiving the form data html.
I’ve tried everything here but it doesn’t work ='(
Detailing the situation:
I receive the address to which I wish to send the email here:
$Email = $_POST["Email"];
// Funciona normal, até uso em outros pontos no código e a string está perfeita
$mail->AddAddress($Email);
// Aqui não pega, mas caso eu coloque a string funciona.
Test initialize a variable to test like this:
$teste = "[email protected]";
$mail->AddAddress($teste, $Nome);
Was normal.
Test take the variable value $Email
but it also did not take, in these two ways:
$teste = "$Email";
$teste = $Email.
Anyway I don’t know what else to do, the code is right but the problem is that I can’t use the email placed on the form =/