Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Email Resend Task
- * Copyright 2018
- */
- function task_emailresend($task)
- {
- global $mybb, $db;
- $options = array(
- "limit_start" => 0,
- "limit" => 25,
- "order_by" => "dateline",
- "order_dir" => "desc"
- );
- $query = $db->simple_select("mailerrors", "*", "1=1",$options);
- while($row = $db->fetch_array($query))
- {
- $eid = $row['eid'];
- my_mail($row['toaddress'], $row['subject'], $row['message'], $row['fromaddress']);
- $db->delete_query("mailerrors", "eid='{$eid}'");
- }
- add_task_log($task, "Mail Error Log Resent");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement