Horde_Registry::getEmailCharset PHP Method

getEmailCharset() public method

Returns the charset to use for outgoing emails.
public getEmailCharset ( ) : string
return string The preferred charset for outgoing mails based on the user's preferences and the current language.
    public function getEmailCharset()
    {
        if (isset($GLOBALS['prefs']) && ($charset = $GLOBALS['prefs']->getValue('sending_charset'))) {
            return $charset;
        }
        return ($charset = $this->nlsconfig->curr_emails) ? $charset : $this->getLanguageCharset();
    }