Something went wrong. Try again.
A MailerSend mail adapter for Craft CMS.
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738<?php
namespace studioespresso\mailersend;
use craft\events\RegisterComponentTypesEvent;use craft\helpers\MailerHelper;use yii\base\Event;
/** * Plugin represents the MailerSend plugin. * * @author Studio Espresso <support@studioespresso.co> * @since 1.0 */class Plugin extends \craft\base\Plugin{ /** * @inheritdoc */ public string $schemaVersion = '1.0.0';
/** * @inheritdoc */ public function init() { parent::init();
Event::on( MailerHelper::class, MailerHelper::EVENT_REGISTER_MAILER_TRANSPORTS, function(RegisterComponentTypesEvent $event) { $event->types[] = Adapter::class; } ); }}