Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I'd like to be able to set the default message format from plain text to either Filtered HTML or Full HTML.
I've found the variable at line 166 of views_send.module:
$form['mail']['format'] = _views_send_filter_form(variable_get('views_send_message_format_'. $display, VIEWS_SEND_FORMAT_PLAIN));
I haven't been able to determine what values can be used to substitute for 'VIEWS_SEND_FORMAT_PLAIN'.
Any help appreciated.
Comments
Comment #1
PascalAnimateur CreditAttribution: PascalAnimateur commentedHere's what I use in a custom module (I made it by exporting my view with features) to set the default To: (and hide the collapsible fieldset) and change the default message format.
You'll have to change the $form_id to match the name of your view.
Comment #2
areynolds CreditAttribution: areynolds commentedYou can also achieve this by using Mime Mail on your site; guessing that Views Send wants other modules to handle this functionality, so I'm closing this unless anyone has an objection.
Comment #3
pikot CreditAttribution: pikot commented#1 The solution of PascalAnimateur works like a charm!