backdrop-contrib / views_send

Provides mass mailing using Views, enabling a list of email addresses to be produced with a view and an email to the group to be composed and sent.
https://backdropcms.org/project/views_send
GNU General Public License v2.0
1 stars 0 forks source link

Pass view name as $key to backdrop_mail and mimemail. #11

Closed Graham-72 closed 7 years ago

Graham-72 commented 8 years ago

This issue was first raised in issue #7

Mimemail has the ability to apply different templates for different mail messages if given a name (key) for the mail message. So, for example, a site can have different views prepared with views_send for different mailing lists or circumstances, each view having a custom template.

To do this, views_send must be modified in order to pass the view name in the message content rather than pass the value 'direct' as the key.

Graham-72 commented 8 years ago

@hansfn this in outline is the solution I have devised for this Backdrop version:

I am writing this here in order to record this divergence from the D7 and D8 versions of the module. Your views are very welcome.