Commit ee1f8f50 authored by Mark Harding's avatar Mark Harding

(feat): token balance email

No related merge requests found
Pipeline #68559848 passed with stages
in 6 minutes and 41 seconds
......@@ -94,11 +94,11 @@ class MissedSinceLogin implements EmailBatchInterface
->setValue(true)
->setOffset($this->offset);
$blogs = $this->getTrendingBlogs();
//$blogs = $this->getTrendingBlogs();
$i = 0;
foreach ($iterator as $user) {
$user = new \Minds\Entities\User('ottman');
$user = new \Minds\Entities\User('mark');
++$i;
echo "\n[$i]: $user->guid ($iterator->offset)";
......@@ -107,13 +107,13 @@ class MissedSinceLogin implements EmailBatchInterface
// return true;
//}
$campaign = new Campaigns\WithBlogs();
$campaign = new Campaigns\MissedSinceLogin();
$campaign
->setUser($user)
//->setTemplateKey($this->templatePath)
//->setSubject($this->subject)
->setBlogs($blogs)
->setTemplateKey($this->templatePath)
->setSubject($this->subject)
//->setBlogs($blogs)
->send();
echo ' sent';
......
......@@ -64,6 +64,7 @@ class MissedSinceLogin extends EmailCampaign
$this->template->setTemplate('default.tpl');
$this->template->setBody("./Templates/$this->templateKey.tpl");
$this->template->toggleMarkdown(true);
$this->template->set('user', $this->user);
$this->template->set('username', $this->user->username);
......@@ -75,7 +76,6 @@ class MissedSinceLogin extends EmailCampaign
$this->template->set('entities', $this->entities);
$this->user = new \Minds\Entities\User('jack');
$message = new Message();
$message->setTo($this->user)
->setMessageId(implode('-',
......
Please login to check your token balance. Remember, 1 token = 1,000 extra views on the content of your choice by using [Boost](https://www.minds.com/boost?__e_ct_guid=<?= $vars['guid']?>&campaign=<?= $vars['campaign']?>&topic=<?= $vars['topic'] ?>&validator=<?= $vars['validator']?>). You can also send tokens to your favourite channels to support them.
| |
|:--:|
| [![Read More](https://cdn-assets.minds.com/emails/view-balance.png){=150x}](https://ndl.minds.com/wallet/tokens/transactions?__e_ct_guid=<?= $vars['guid']?>&campaign=<?= $vars['campaign']?>&topic=<?= $vars['topic'] ?>&validator=<?= $vars['validator']?>){=50x} |
| |
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment