Class EmailConfigurationProvider

Class EmailConfigurationProvider

Methods summary

public __construct( CI_DB_query_builder $db )

EmailConfigurationProvider constructor.

public emailTransport( void ) : string

Returns the email transport configuration value.

public auth( void ) : string

Returns the smtp auth configuration value.

public backupServer( void ) : string

Returns the smtp backup server configuration value.

public encryption( void ) : string

Returns the smtp encryption configuration value.

public mainServer( void ) : string

Returns the smtp main server configuration value.

public password( void ) : string

Returns the smtp password configuration value.

public port( void ) : string

Returns the smtp port configuration value.

public user( void ) : string

Returns the smtp user configuration value.

public sendMailPath( void ) : string

Returns the send mail path configuration value.

public charset( void ) : string

Returns the charset configuration value for emails. $_SESSION['language_charset'] will be used if it is set. If not, the charset of the default shop language is taken.

public languageCode( void ) : string

Returns the language code configuration value. The code is 'de', if $_SESSION['language'] is equal to 'german'. Any other case will return en.

public useHtmlMail( void ) : boolean

Returns true if html emails should be used. The configuration value will be read from configuration table.

Properties summary

protected $db : CI_DB_query_builder

		
protected $table : string
'configuration'
protected $keyField : string
'configuration_key'
protected $valueField : string
'configuration_value'