1
This commit is contained in:
@@ -728,18 +728,18 @@ function prgeAuthor($author)
|
||||
|
||||
function my_tg_pushmail($data)
|
||||
{
|
||||
$res = sendEmail($data['email'], $data['title'], $data['title'], $data['content'], $data['tmail'], $data['tpassword'], $data['attachmentFile']);
|
||||
if (isset($res['status'])) {
|
||||
$log_obj = Db::name('email_log');
|
||||
$insert['article_id'] = $data['article_id'];
|
||||
$insert['email'] = $data['email'];
|
||||
$insert['content'] = $data['content'];
|
||||
$insert['is_success'] = $res['status'];
|
||||
$insert['attachment'] = $data['attachmentFile'] != '' ? substr($data['attachmentFile'], strrpos($data['attachmentFile'], 'enclosure/') + 10) : '';
|
||||
$insert['ctime'] = time();
|
||||
$log_obj->insert($insert);
|
||||
$log_obj->close();
|
||||
}
|
||||
// $res = sendEmail($data['email'], $data['title'], $data['title'], $data['content'], $data['tmail'], $data['tpassword'], $data['attachmentFile']);
|
||||
// if (isset($res['status'])) {
|
||||
// $log_obj = Db::name('email_log');
|
||||
// $insert['article_id'] = $data['article_id'];
|
||||
// $insert['email'] = $data['email'];
|
||||
// $insert['content'] = $data['content'];
|
||||
// $insert['is_success'] = $res['status'];
|
||||
// $insert['attachment'] = $data['attachmentFile'] != '' ? substr($data['attachmentFile'], strrpos($data['attachmentFile'], 'enclosure/') + 10) : '';
|
||||
// $insert['ctime'] = time();
|
||||
// $log_obj->insert($insert);
|
||||
// $log_obj->close();
|
||||
// }
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user