Skip to content

Multiple message templates#8

Open
GarPit wants to merge 8 commits intoradiant:masterfrom
GarPit:master
Open

Multiple message templates#8
GarPit wants to merge 8 commits intoradiant:masterfrom
GarPit:master

Conversation

@GarPit
Copy link

@GarPit GarPit commented Jun 23, 2011

With this modifications you can specify multiple message templates. So, you can specify emailer part like this one:

user:
  subject: Subject1
  from: my@organization.com  
  recipients_field: email
organization:
  from: no_reply@organization.com
  subject: Subject2
  recipients:
    - my@organization.com
redirect_to: /about-us

Each top level key (except :redirect_to) in this config means some custom email page part (like "email_key_html" for html parts or "email_key" for plain parts). So, for this configuration we must specify "email_user_html" part and "email_organization_html". With this feature you can specify as many config parts and templates as you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant