Answers.Body: <p>The <a href="https://craftcms.com/docs/config-settings#testToEmailAddress" rel="nofollow">testToEmailAddress</a> config setting which</p>
  
  <blockquote>
    <p>Configures Craft to send all system emails to a single email address (or multiple email addresses), for testing purposes.</p>
  </blockquote>
  
  <p>sounds like the one you are looking for.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T16:36:11.777Z
Answers.LastActivityDate: 2016-06-23T16:36:11.777Z
Answers.UserDisplayName: Marion Newlevant
Answers.Body: <p><a href="https://craftcms.stackexchange.com/a/15636/57">Marion's answer</a> is a workaround for Craft 2, but this has been officially addressed in the upcoming Craft 3:  <a href="https://github.com/craftcms/cms/issues/840" rel="nofollow noreferrer">https://github.com/craftcms/cms/issues/840</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-11T13:34:52.930Z
Answers.Text: This feedback 404s. Is this possible yet in the config? It would be a great feature.
Answers.UserDisplayName: ianp
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-07-12T00:10:25.737Z
Answers.Text: Updated answer.
Answers.UserDisplayName: Brad Bell
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-06-23T17:27:33.103Z
Answers.LastActivityDate: 2017-07-12T00:10:20.227Z
Answers.LastEditDate: 2017-07-12T00:10:20.227Z
Answers.UserDisplayName: Brad Bell
Answers.Body: <p>Shameless plug: We've written a plugin that automatically updates your email settings depending on your environment. It's not free, but it is cheap :-) Please <a href="http://red-robot.co.uk/our-work/email-settings-craft-cms-plug-in" rel="nofollow noreferrer">check out</a> the page on our website for more information. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-08-02T12:51:52.090Z
Answers.LastActivityDate: 2017-08-02T12:51:52.090Z
Answers.UserDisplayName: Gaz
Body: <p>Is there a way to set the system email address and sender name from within the config file?</p>
  
  <p>This would be useful when using multi environment configurations. For instance, during development or on my staging server I wish emails to be sent to me (the developer). While for production they would go to the site owner.</p>
  
  <p>I can see the values in serialised data within the database but was hoping I could override them within the config file. I've tried the  keys "emailAddress" and "senderName" to no avail.</p>
  
Tags: <config><emails><configuration>
Title: Setting system email address and sender name in multi config
ThreadText: # Setting system email address and sender name in multi config
  
  (Asked by: username_0 on 2016-06-23)
  
  Is there a way to set the system email address and sender name from within the config file?
  
  This would be useful when using multi environment configurations. For instance, during development or on my staging server I wish emails to be sent to me (the developer). While for production they would go to the site owner.
  
  I can see the values in serialised data within the database but was hoping I could override them within the config file. I've tried the keys "emailAddress" and "senderName" to no avail.
  
  **Tags:** config, emails, configuration
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2016-06-23. Score: 3 | Accepted answer
  
  The [testToEmailAddress](https://craftcms.com/docs/config-settings#testToEmailAddress) config setting which
  
  > Configures Craft to send all system emails to a single email address (or multiple email addresses), for testing purposes.
  
  sounds like the one you are looking for.
  
  
  ---
  
  ### Answer by username_2 on 2016-06-23. Score: 3
  
  [username_1's answer](https://craftcms.stackexchange.com/a/15636/57) is a workaround for Craft 2, but this has been officially addressed in the upcoming Craft 3: <https://github.com/craftcms/cms/issues/840>
  
  > **Comments:**
  > **username_3**: This feedback 404s. Is this possible yet in the config? It would be a great feature.  
  > **username_2**: Updated answer.  
  
  ---
  
  ### Answer by username_4 on 2017-08-02. Score: 1
  
  Shameless plug: We've written a plugin that automatically updates your email settings depending on your environment. It's not free, but it is cheap :-) Please [check out](http://red-robot.co.uk/our-work/email-settings-craft-cms-plug-in) the page on our website for more information.
  
  
  ---
  
  