我正在为我的PHP项目使用Sendmail。电子邮件发送成功,但它将一个一个地发送。我的代码流程是要检查数据库,如果项目的值小于我设置的值,它将发送电子邮件通知用户。
我想把所有的项目合并成一个单一的电子邮件,使用户没有收到太多的电子邮件为同一通知。我希望你明白我的意思。问题是,我不知道如何使用Sendmail将数据合并成一封电子邮件。有人能告诉我该在哪里换衣服吗?
这是我的密码:
<?php
include 'MasConnectDB.php';
$sql = "SELECT Item, Available FROM accessories_other
我正在使用以下脚本发送一个动态页面(php)作为一个html电子邮件…通过电子邮件发送的页面使用URL中的变量来确定显示数据库中的哪些记录
<?
$evid = $_GET['evid'];
$to = 'dj@mail.com';
$subject = 'A test email!';
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$he
我想在电子邮件中同时发送html和纯文本。我找到了邮件,但它使用了 ()函数来发送电子邮件。我如何转换这段代码,用PHP Mailer类发送电子邮件?
//specify the email address you are sending to, and the email subject
$email = 'email@example.com';
$subject = 'Email Subject';
//create a boundary for the email. This
$boundary = uniqid('np');
//h