Hi!
When preprocessing variables for htmlmail.tpl.php template at template_preprocess_htmlmail(), it defines the $theme_url variable which could be used for images in the email like in my use case.

It works fine in most of the cases, but if you use language path prefix (e.q. http://www.example.com/de), the $theme_url variable gets wrong.

// htmlmail.module:125
$variables['theme_url'] = url(
    $variables['theme_path'], array('absolute' => TRUE)
  );

Related issues:

CommentFileSizeAuthor
#1 htmlmail-2001740-1.patch682 bytesiMiksu
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

iMiksu’s picture

Status: Active » Needs review
FileSize
682 bytes

This patch should do the work. Please test.

lmeurs’s picture

@iMiksu: Patch works great!

  • Nafes committed 3101a5e on 7.x-2.x authored by iMiksu
    Issue #2001740 by iMiksu: Images not working in template when using...
Nafes’s picture

Issue summary: View changes
Status: Needs review » Fixed

Thank you, iMiksu!

Status: Fixed » Closed (fixed)

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