Closed (won't fix)
Project:
Simplenews
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Oct 2006 at 14:04 UTC
Updated:
12 Jul 2008 at 13:47 UTC
The newsletter doesn't give absolute paths to the website. Say I create a newsletter, and insert an image. When I send the HTML newsletter and then check my e-mail everything works but the images. When looking at the e-mail in detail it is using something like "
" instead of giving the full path to my website. I have tried setting my base path in my settings.php but doesn't seem to help anything. I looked at the module if I could hack it but it just does a node->body so my guess it is need to have a regular expression that runs on the body part to fix it, but I don't know enough about PHP & regex's to fix it myself. Any help would greatly be appreciated.
Comments
Comment #1
xamox commentedSorry I didn't realize in my post about that it would try to render image tags in quotes. But I said [img src="/files/images/image.jpg"] instead of [img src="http://mywebsite.com/files/images/image.jpg"].
Comment #2
markhope commentedI agree this is an important issue. I agree preg_replace would be the best way to go. I'm not too good with preg_replace so for now I'm applying the themeing patch:
http://drupal.org/node/83842
and then applying a base url to the outgoing mail.
in template.php do something like:
This will display the images.
Comment #3
xamox commentedThanks but I have recently ditched this module and now just use CCK with the mail module. Now I have to figure out how to do it for that. ;)
Comment #4
praseodym commentedThis issue still appears in the latest 5.x version.
Comment #5
sutharsan commentedThe conversion of img tag's in html newsletters is not performed by simplenews. You need to check the mimemail issue queue.