public function HtmlMailSystem::getDefaultFromMail in HTML Mail 8.3
Same name and namespace in other branches
- 8 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.
2 calls to HtmlMailSystem::getDefaultFromMail()
- HtmlMailSystem::format in src/
Plugin/ Mail/ HtmlMailSystem.php - Format emails according to module settings.
- HtmlMailSystem::mail in src/
Plugin/ Mail/ HtmlMailSystem.php - Send an email message.
File
- src/
Plugin/ Mail/ HtmlMailSystem.php, line 169
Class
- HtmlMailSystem
- Modify the Drupal mail system to use HTML Mail when sending emails.
Namespace
Drupal\htmlmail\Plugin\MailCode
public function getDefaultFromMail() {
$site_mail = $this->systemConfig
->get('mail');
return $site_mail ?: ini_get('sendmail_from');
}