使用 phpmailer 在 php $mail->Body = $PHPorHTML; 中发送一个脚本;
Send with phpmailer a script in php $mail->Body = $PHPorHTML;
我如何发送电子邮件的 .html 或 .php 脚本模板
$HTML= "message.html";
$PHP= "message.php";
$mail->Body = $PHP;
这是发送的示例 https://pm.decolombiajoyas.com/templatemejorado.php
我想生成一个 html 用于发送,但需要更多的想法来完成它。
感谢支持
简单:
$htmlContent = file_get_contents("email_template.html"); // Here add location of file.
mail($htmlContent, ); // Add rest of contents that you want to send.
我如何发送电子邮件的 .html 或 .php 脚本模板
$HTML= "message.html";
$PHP= "message.php";
$mail->Body = $PHP;
这是发送的示例 https://pm.decolombiajoyas.com/templatemejorado.php
我想生成一个 html 用于发送,但需要更多的想法来完成它。
感谢支持
简单:
$htmlContent = file_get_contents("email_template.html"); // Here add location of file.
mail($htmlContent, ); // Add rest of contents that you want to send.