My code .php is:
<?php
$Nombre = $_POST['Nombre'];
$Apellidos = $_POST['Apellidos'];
$Alias = $_POST['Alias'];
$Correo = $_POST['Correo'];
$Ingreso = $_POST['Ingreso'];
$Pais = $_POST['Pais'];
$Estado = $_POST['Estado'];
$Ciudad = $_POST['Ciudad'];
$destinario = "[email protected]";
$asunto = "Registro de guardián";
$carta = "Nombre(s): $Nombre \n";
$carta .= "Apellidos: $Apellidos\n";
$carta .= "Alias: $Alias\n";
$carta .= "Correo electronico: $Correo\n";
$carta .= "Pais: $Pais\n";
$carta .= "Estado: $Estado\n";
$carta .= "Ciudad: $Ciudad";
mail($destinatario, $asunto, $carta);
header('registroenviado.html');
?>
But when sending, these errors come out.
Notice: Undefined variable: recipient in /storage/ssd3/936/5718936/public_html/enviar.php on line 20
Warning: Can not modify header information - headers already sent by (output started at /storage/ssd3/936/5718936/public_html/enviar.php:20) in /storage/ssd3/936/5718936/public_html/enviar.php online 21