Hi @Botble I want to create a plugin for a mail driver. Is that possible?
and I see the code on file platform\core\setting\src\Forms\EmailSettingForm.php
and it shows the
.
.
->add(
'email_driver',
SelectField::class,
SelectFieldOption::make()
->label(trans('core/setting::setting.email.mailer'))
->choices(apply_filters('core_email_mailers', [
'smtp' => 'SMTP',
'mailgun' => 'Mailgun',
'ses' => 'SES',
'postmark' => 'Postmark',
'log' => 'Log',
'array' => 'Array',
] + (function_exists('proc_open') ? ['sendmail' => 'Sendmail'] : [])))
->selected($mailer)
->addAttribute('data-bb-toggle', 'collapse')
->addAttribute('data-bb-target', '.email-fields')
)
->add(
'mailer',
HtmlField::class,
HtmlFieldOption::make()->view('core/setting::partials.email.email-fields', compact('mailer')),
)
.
.
using the core_email_mailers
filter we can add a new driver in the select field but I did not find the view for our custom driver. If there are any options kindly let me know. and if there is no option please add.
Thanks