评论被回复时,如果评论者填了邮箱,则向其发送通知邮件。使用阿里云的邮件推送。每日免费额度 200 封。
/**
* 发送阿里云邮件
*/
class Util_Mail
{
private static $url, $accessId, $accessSecret, $account, $name;
public static function send($title, $content, $receiver = null)
{
if (empty($title) || empty($content)) {
return false;
}
self::init();
- 全文剩余 86% -