ported changes from server

This commit is contained in:
Alexander Yakovlev 2017-05-09 16:34:36 +07:00
parent a6205db015
commit fe51385d4a
2 changed files with 6 additions and 5 deletions

View file

@ -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) {

View file

@ -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;