| @@ -1,25 +1,0 @@ | ||
| 1 | -<?php | |
| 2 | - | |
| 3 | -use AcyMailing\Core\AcymPlugin; | |
| 4 | - | |
| 5 | -class plgAcymPhpmail extends AcymPlugin | |
| 6 | -{ | |
| 7 | - const SENDING_METHOD_ID = 'phpmail'; | |
| 8 | - const SENDING_METHOD_NAME = 'PHP Mail Function'; | |
| 9 | - | |
| 10 | - public function __construct() | |
| 11 | - { | |
| 12 | - parent::__construct(); | |
| 13 | - $this->pluginDescription->name = acym_translation('ACYM_PHPMAIL_FUNCTION'); | |
| 14 | - } | |
| 15 | - | |
| 16 | - public function onAcymGetSendingMethods(&$data, $isMailer = false) | |
| 17 | - { | |
| 18 | - if ($isMailer) return; | |
| 19 | - $data['sendingMethods'][self::SENDING_METHOD_ID] = [ | |
| 20 | - 'name' => $this->pluginDescription->name, | |
| 21 | - 'image' => ACYM_IMAGES.'mailers/phpmail.svg', | |
| 22 | - 'image_class' => 'acym__selection__card__image__smaller', | |
| 23 | - ]; | |
| 24 | - } | |
| 25 | -} | |