Answers.Body: <p>The answer is <em>both</em>. It will use whatever’s in the translation file by default, until an admin goes to Settings > Email > Messages and customizes it.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-02T17:22:12.853Z
Answers.Text: Ok, so just to confirm, once a change has been made in Settings > Email > Messages, i.e. once it has been customized, it will always use the customized version going forward and there's no way to go back to using the translation file version?
Answers.UserDisplayName: John O
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-02T17:23:21.880Z
Answers.Text: Correct - the translation file just supplies the default values.
Answers.UserDisplayName: Brandon Kelly
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-10-02T17:16:26.743Z
Answers.LastActivityDate: 2015-10-02T17:16:26.743Z
Answers.UserDisplayName: Brandon Kelly
Body: <p>When an email key is registered for use with craft()->email->sendEmailByKey, it shows up in the control panel at Email Settings->Messages. This seems like a great way to allow easy editing of the messages by clients. </p>
  
  <p>If I have something hardcoded in my plugin's translations folder (e.g. /translations/en_us.php) corresponding to the email message key, will the subject and body always come from that file, or will it come from the data in the control panel? Specifically, if an update is made to the template in the control panel, does that completely override the template defined in the translations file? If so, is there a way to revert back to the version in the translation file?</p>
  
Tags: <emails>
Title: Do email messages use control panel or translation file template when sending by key?
ThreadText: # Do email messages use control panel or translation file template when sending by key?
  
  (Asked by: username_0 on 2015-10-02)
  
  When an email key is registered for use with craft()->email->sendEmailByKey, it shows up in the control panel at Email Settings->Messages. This seems like a great way to allow easy editing of the messages by clients.
  
  If I have something hardcoded in my plugin's translations folder (e.g. /translations/en\_us.php) corresponding to the email message key, will the subject and body always come from that file, or will it come from the data in the control panel? Specifically, if an update is made to the template in the control panel, does that completely override the template defined in the translations file? If so, is there a way to revert back to the version in the translation file?
  
  **Tags:** emails
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2015-10-02. Score: 2 | Accepted answer
  
  The answer is *both*. It will use whatever’s in the translation file by default, until an admin goes to Settings > Email > Messages and customizes it.
  
  > **Comments:**
  > **username_0**: Ok, so just to confirm, once a change has been made in Settings > Email > Messages, i.e. once it has been customized, it will always use the customized version going forward and there's no way to go back to using the translation file version?  
  > **username_1**: Correct - the translation file just supplies the default values.  
  
  ---
  
  