I need to pass the variable with a template to send and organize the code.
define(FULLNAME, $fullname);
define(EMAIL, $email);
$body = include('../templete/welcome.php?name='.FULLNAME);
$header = "From: Team app <[email protected]> \r\n";
$header .= "Bcc: [email protected] \r\n";
$header .= "X-Mailer: PHP/" . phpversion() . " \r\n";
$header .= "Mime-Version: 1.0 \r\n";
$header .= "Content-Type: text/html";
return $body;
mail(EMAIL, "¡Welcome to Dolphy!", $body, $header);