Unfortunately I don't have a very deep knowledge of the Views Send module, so maybe it has to be the way it currently is for any reasons, but I don't think it's a good idea to rely on Mimemail so strong.

Recently I had to send emails containing inline images within via SMTP with Views Send and I didn't found any solution to get it working.

I tried the Mimemail module, the HTML Mail module in combination with Mail Mime, the SMTP Authentication Support module and combinations of them.
It wasn't possible at all to correctly send some mails with inline images.

Now I installed the Swiftmailer module and was able to get it working, but I still had to hack Views Send (see patch in the first comment) and had to add "image:" to each src attribute of the img tags (not the fault of Views Send; see Section 3.2.2).

Additionally the Mimemail module must stay enabled, although it isn't actually used, because otherwise Views Send would simply "destroy" my HTML.

That's just an example, but I think it's worth adding better support for other mailing modules and drop the heavy binding to Mimemail.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Tobias Xy’s picture

I don't think this patch should be committed or something. It's just the solution for my page to get stuff done and probably just a little part of what the whole issue is about.
Leaving the status "active" therefore.

hansfn’s picture

Assigned: Unassigned » hansfn

I have already added support for Mandrill - see #2089409: Mandrill instead of mime mail.

I think supporting Swiftmailer is sensible. I'll fix it soon. Thx for the patch/work-around. I'm slightly surprised that is it needed ...

hansfn’s picture

Category: Feature request » Bug report

The D8 version should definitely support Swiftmailer since it has a D8 release.

The D7 version should definitely support Swiftmailer and HTML Mail.

Changing this into a bug report so I don't forget it again.

hansfn’s picture

Status: Active » Fixed

Fixed - finally! - for the D7 version in commit 7afaa60. Currently Mime Mail, HTML Mail, Swift Mailer and Mandrill is supported.

Two important remarks:

Status: Fixed » Closed (fixed)

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