From f99a3c501fd6ed7b4914b8d6e855489c2ce5b219 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 16 Oct 2015 20:50:12 -0400 Subject: Make mail transports pluggable and move integrations to plugins - Postmark: https://github.com/kanboard/plugin-postmark - Mailgun: https://github.com/kanboard/plugin-mailgun - Sendgrid: https://github.com/kanboard/plugin-sendgrid --- app/Controller/Webhook.php | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'app/Controller/Webhook.php') diff --git a/app/Controller/Webhook.php b/app/Controller/Webhook.php index 1b3a659b..1186680d 100644 --- a/app/Controller/Webhook.php +++ b/app/Controller/Webhook.php @@ -92,37 +92,4 @@ class Webhook extends Base echo $result ? 'PARSED' : 'IGNORED'; } - - /** - * Handle Postmark webhooks - * - * @access public - */ - public function postmark() - { - $this->checkWebhookToken(); - echo $this->postmark->receiveEmail($this->request->getJson()) ? 'PARSED' : 'IGNORED'; - } - - /** - * Handle Mailgun webhooks - * - * @access public - */ - public function mailgun() - { - $this->checkWebhookToken(); - echo $this->mailgun->receiveEmail($_POST) ? 'PARSED' : 'IGNORED'; - } - - /** - * Handle Sendgrid webhooks - * - * @access public - */ - public function sendgrid() - { - $this->checkWebhookToken(); - echo $this->sendgrid->receiveEmail($_POST) ? 'PARSED' : 'IGNORED'; - } } -- cgit v1.2.3