function SimplenewsSourceEntity::getFromFormatted in Simplenews 7.2
Implements SimplenewsSourceInterface::getFromFormatted().
Overrides SimplenewsSourceInterface::getFromFormatted
1 call to SimplenewsSourceEntity::getFromFormatted()
- SimplenewsSourceEntity::getHeaders in includes/
simplenews.source.inc - Implements SimplenewsSourceInterface::getHeaders().
File
- includes/
simplenews.source.inc, line 515 - Contains SimplenewsSource interface and implementations.
Class
- SimplenewsSourceEntity
- Default source class for entities.
Code
function getFromFormatted() {
// Windows based PHP systems don't accept formatted email addresses.
if (drupal_substr(PHP_OS, 0, 3) == 'WIN') {
return $this
->getFromAddress();
}
return '"' . addslashes(mime_header_encode($this
->getNewsletter()->from_name)) . '" <' . $this
->getFromAddress() . '>';
}