Changeset View
Changeset View
Standalone View
Standalone View
src/applications/metamta/storage/PhabricatorMetaMTAMail.php
| Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | public function save() { | ||||
| $this->openTransaction(); | $this->openTransaction(); | ||||
| // Save to generate a task ID. | // Save to generate a task ID. | ||||
| $result = parent::save(); | $result = parent::save(); | ||||
| // Queue a task to send this mail. | // Queue a task to send this mail. | ||||
| $mailer_task = PhabricatorWorker::scheduleTask( | $mailer_task = PhabricatorWorker::scheduleTask( | ||||
| 'PhabricatorMetaMTAWorker', | 'PhabricatorMetaMTAWorker', | ||||
| $this->getID(), | $this->getID(), | ||||
| PhabricatorWorker::PRIORITY_ALERTS); | array( | ||||
| 'priority' => PhabricatorWorker::PRIORITY_ALERTS, | |||||
| )); | |||||
| $this->saveTransaction(); | $this->saveTransaction(); | ||||
| return $result; | return $result; | ||||
| } | } | ||||
| public function buildDefaultMailer() { | public function buildDefaultMailer() { | ||||
| return PhabricatorEnv::newObjectFromConfig('metamta.mail-adapter'); | return PhabricatorEnv::newObjectFromConfig('metamta.mail-adapter'); | ||||
| ▲ Show 20 Lines • Show All 605 Lines • Show Last 20 Lines | |||||