mailsystem-integration-2023977-7.patch 870 B

1234567891011121314151617181920212223242526
  1. diff --git a/views_send.module b/views_send.module
  2. index 283d434..58bbff9 100644
  3. --- a/views_send.module
  4. +++ b/views_send.module
  5. @@ -960,8 +960,9 @@ function _views_send_prepare_mail(&$message, $plain_format=TRUE, $attachments=ar
  6. $params['headers'] = $headers;
  7. if (VIEWS_SEND_MIMEMAIL) {
  8. + $mailsystem = mailsystem_get();
  9. mailsystem_set(array(
  10. - "views_send_$key" => 'MimeMailSystem'
  11. + "views_send_$key" => $mailsystem['mimemail']
  12. ));
  13. $params['attachments'] = $attachments;
  14. if ($plain_format) {
  15. @@ -1010,8 +1011,9 @@ function views_send_deliver($message) {
  16. if (VIEWS_SEND_MIMEMAIL) {
  17. $mail['subject'] = mime_header_encode($message->subject);
  18. + $mailsystem = mailsystem_get();
  19. mailsystem_set(array(
  20. - "views_send_$key" => 'MimeMailSystem'
  21. + "views_send_$key" => $mailsystem['mimemail']
  22. ));
  23. }