We are using mandrill for our html mailing system, but views send dosn't seem to send html mail to anything except mime mail, and I receive this message :

Only plain text is supported in the message. Any HTML will be converted to text. If you want to format the message with HTML, you'll have to install and enable the Mime Mail module.

Is there a suggested way to use mandrill instead of mimemail and use html? - are there hooks or is a patch required here?

Thanks

Comments

rafaqz’s picture

Ok so I'm using both modules together and it works fine, just seems like overkill...

hansfn’s picture

Category: support » feature

I turned this into a feature request. Views Send should recognize when the Mandrill module is enabled.

Patches are welcome. Can't promise when I get time to do this myself.

tymn’s picture

For anyone else doing the mime mail workaround you need to:

  1. Install mime mail
  2. Ensure Mandrill is still set to send the mails at admin/config/system/mailsystem
  3. Set mime mail format to full html at admin/config/system/mimemail
  4. Send views send email as Full HTML
troybthompson’s picture

I've set the views send e-mail module to MandrillMailSystem, double-checked it, but after I try sending using the view, I come back to the mail system page and it's been changed back to MimeMailSystem, and the e-mails I receive haven't been processed by Mandrill. I even have site-wide default set to Mandrill. So it looks like it's changing the settings, not just ignoring them.

hansfn’s picture

I haven't tested the instructions myself, but I guess that point 2 isn't talking about the Views Send setting on admin/config/system/mailsystem It's the site-wide and/or Mime Mail setting that you need to ensure that still is using Mandrill.

troybthompson’s picture

Yes, I have all of them set to MadrillMailSystem, including the site-wide and mime mail. The e-mail from views send gets sent out fine, but it doesn't go out through Madrill. When I go back to the mail system page, the setting for "Views Send E-mail module (direct key) class" has been changed to MimeMailSystem.

troybthompson’s picture

Nevermind, I cleared the cache and now it seems like it's working correctly and sending through Madrill. I don't know if this solved the initial report, though.

niyi’s picture

Issue summary: View changes

I have the same issue. Clearing cache did not work for me. Please is there any other suggested solution?

hansfn’s picture

Assigned: Unassigned » hansfn

@niyi: Did you try the work-around in comment 3?

I assign this one to myself now in the hope that I have time for it this month ...

  • Commit 3acf7f1 on 7.x-1.x by hansfn:
    Issue #2089409 by hansfn: Added support for Mandrill.
    
hansfn’s picture

Status: Active » Fixed

As the system message says, I just added support for Mandrill in commit 3acf7f1. Either apply the patch manually or download the dev version after it is rebuild. I have tested and it seems to work as expected.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

GiorgosK’s picture

It would be nice to be mentioned on the project page
https://www.drupal.org/project/mandrill

hansfn’s picture

Hi, GiorgosK

If you think so, you should file an issue in the Mandrill issue queue.

GiorgosK’s picture

No I meant to mention in this project page that mandrill is supported
not the other way around (mimemail support is mentioned why not mandrill)