Body: <p>Is it possible to setup messages (for transactional emails) as global text fields that include variables such as {{ firstName }}, {{ lastName }}, {{ email }} etc.?</p>
  
  <p>For example:</p>
  
  <ul>
  <li>Custom plugin fires off transactional email</li>
  <li>Email copy is pulled from global text field</li>
  <li>Variables like {{ firstName }} are substituted from plugin action</li>
  <li>Email is sent</li>
  </ul>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-30T20:46:27.827Z
Comments.Text: I'm probably mis-understanding something, but a plugin has access to all custom fields/globals and would be able to compose the email with whatever content is needs.
Comments.UserDisplayName: Brad Bell
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-30T22:13:18.707Z
Comments.Text: @BradBell just looking for a way to make the emails customizable by an admin via a text field. For example someone could change Dear {{ firstName }}, click here to sign up to Dear {{ fistName }}, thanks for signing up.
Comments.UserDisplayName: Adam McCombs
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-30T22:15:54.917Z
Comments.Text: Actually @BradBell I just ran across messages under email settings. Is there a way to extend that functionality?
Comments.UserDisplayName: Adam McCombs
Tags: <plugin-development><emails><globals>
Title: Custom Messages including variables in global field?
ThreadText: # Custom Messages including variables in global field?
  
  (Asked by: username_0 on 2016-11-30)
  
  Is it possible to setup messages (for transactional emails) as global text fields that include variables such as {{ firstName }}, {{ lastName }}, {{ email }} etc.?
  
  For example:
  
  * Custom plugin fires off transactional email
  * Email copy is pulled from global text field
  * Variables like {{ firstName }} are substituted from plugin action
  * Email is sent
  
  **Tags:** plugin-development, emails, globals
  
  > **Comments:**
  > **username_1**: I'm probably mis-understanding something, but a plugin has access to all custom fields/globals and would be able to compose the email with whatever content is needs.  
  > **username_0**: @username_1 just looking for a way to make the emails customizable by an admin via a text field. For example someone could change Dear {{ firstName }}, click here to sign up to Dear {{ fistName }}, thanks for signing up.  
  > **username_0**: Actually @username_1 I just ran across messages under email settings. Is there a way to extend that functionality?  
  
  ---
  
  ## 0 answers
  
  