public function YamlFormEmailProvider::install in YAML Form 8
Install form's PHP mail handler which supports sending HTML emails.
Overrides YamlFormEmailProviderInterface::install
1 call to YamlFormEmailProvider::install()
- YamlFormEmailProvider::check in src/
YamlFormEmailProvider.php - Check if the YAML Form module should provide support for sending HTML emails.
File
- src/
YamlFormEmailProvider.php, line 102
Class
- YamlFormEmailProvider
- Manages and provides HTML email support.
Namespace
Drupal\yamlformCode
public function install() {
$config = $this->configFactory
->getEditable('system.mail');
$mail_plugins = $config
->get('interface');
$mail_plugins['yamlform'] = 'yamlform_php_mail';
$config
->set('interface', $mail_plugins)
->save();
}