ported changes from server
This commit is contained in:
parent
a6205db015
commit
fe51385d4a
|
@ -52,8 +52,9 @@ foreach ($users as $user) {
|
|||
echo $message;
|
||||
}
|
||||
$message = Swift_Message::newInstance()
|
||||
->setSubject('Daily Digest — Olympic Business Forum')
|
||||
->setFrom('no-reply@olympicbusinessforum.com')
|
||||
->setSubject('Daily Digest')
|
||||
->setFrom(['no-reply@olympicbusinessforum.com' => 'Olympic Business Forum'])
|
||||
->setSender(['no-reply@olympicbusinessforum.com' => 'Olympic Business Forum'])
|
||||
->setTo(array($email => $user['username']))
|
||||
->setBody($message, 'text/html');
|
||||
if (!DRY_RUN) {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
// forbidden: forbidden forums IDs
|
||||
// skips over threads made by this user with 0 replies
|
||||
function print_email($username, $unsubscription, $threads, $forbidden) {
|
||||
$th_style = "padding: 0.5em; border: 1px solid #eee;";
|
||||
$td_style = "padding: 0.5em; border: 1px solid #eee;";
|
||||
$th_style = "font-family: Arial, Helvetica, sans-serif;padding: 0.5em; border: 1px solid #eee;";
|
||||
$td_style = "font-family: Arial, Helvetica, sans-serif;padding: 0.5em; border: 1px solid #eee;";
|
||||
$message = <<<END
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||
<html>
|
||||
|
@ -54,7 +54,7 @@ END;
|
|||
<p>Thank you,<br>
|
||||
Olympic Business Forum Staff</p>
|
||||
|
||||
<p>To unsubscribe from these daily digests, click here: <a href="$unsubscription">$unsubscription</a></p>
|
||||
<p>To unsubscribe from these daily digests, <a href="$unsubscription">click here.</a></p>
|
||||
</body>
|
||||
</html>
|
||||
END;
|
||||
|
|
Reference in a new issue