public function HTMLMailSystem::getDefaultFromMail in HTML Mail 8
Same name and namespace in other branches
- 8.3 src/Plugin/Mail/HtmlMailSystem.php \Drupal\htmlmail\Plugin\Mail\HtmlMailSystem::getDefaultFromMail()
Retrieves the default site mail.
First from Drupal configuration and then PHP configuration.
Return value
string The email to be used.
1 call to HTMLMailSystem::getDefaultFromMail()
- HTMLMailSystem::format in src/
Plugin/ Mail/ HTMLMailSystem.php - Format emails according to module settings.
File
- src/
Plugin/ Mail/ HTMLMailSystem.php, line 125
Class
- HTMLMailSystem
- Modify the Drupal mail system to use HTMLMail when sending emails.
Namespace
Drupal\htmlmail\Plugin\MailCode
public function getDefaultFromMail() {
$site_mail = $this->systemConfig
->get('mail');
return $site_mail ?: ini_get('sendmail_from');
}