From a template or a plugin, how can I get the value of admin/Settings/System Email Address ? Thanks for your help Nicolas


You can get this in a template like so:

{# returns an array of your email settings #}
{% set settings = craft.systemSettings.email %}

{# returns the email address #}
{{ settings.emailAddress }}

And in a plugin you can do:

craft()->systemSettings->getSetting('email', 'emailAddress')

In craft 3 it appears you can access it by doing the following:

{{ craft.systemSettings.email.fromEmail }}


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.