How I can send a .html or .php script template for email
$HTML= "message.html"; $PHP= "message.php"; $mail->Body = $PHP;
this its a example for send https://pm.decolombiajoyas.com/templatemejorado.php
I think generate a html based for send but need more ideas for do it.
Thanks for the support.
Advertisement
Answer
Simple :
$htmlContent = file_get_contents("email_template.html"); // Here add location of file. mail($htmlContent, ); // Add rest of contents that you want to send.