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 was facing some issues with images in mails being sent out using mimemail.
I had set the variable mimemail_linkonly as 1, but still the images were not coming up in the email as the source was showing up as relative URL and nt absolute URL. On further investigation, I found that since the images were styles (with applied image styles), the URL for the images were something like this :
http://example.com/sites/default/files/styles/
Comment | File | Size | Author |
---|---|---|---|
#6 | mimemail_images-2152705.patch | 1.32 KB | kbrownell |
mimemail_images.patch.txt | 864 bytes | gargsuchi |
Comments
Comment #1
gargsuchi CreditAttribution: gargsuchi commentedComment #2
sgabe CreditAttribution: sgabe commentedComment #3
sgabe CreditAttribution: sgabe commentedCommitted, thanks!
Comment #5
sgabe CreditAttribution: sgabe commented#2145659: Images with 'itok' token are not embedded is a duplicate of this.
Comment #6
kbrownell CreditAttribution: kbrownell commentedHello. We ran into a similar problem with Mimemail 7.x-1.0-beta3 and Simplenews 7.x-1.1. In our case, the URL's were absolute in the final email, but ?itok= was being converted to %3Fitok%3D and therefore the images were not rendering. First parsing the URL solved our problem, patch attached.