Closed (cannot reproduce)
Project:
Mime Mail
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Oct 2008 at 23:50 UTC
Updated:
20 Mar 2011 at 15:35 UTC
Hey guys,
I just used the Mime Mail and noticed that the image and href tags are being trimmed.
A tag that should be <a href=""> becomes href=""> and the same goes for image tags.
I've included some tags that I had inline with my newsletter posting and the result:
Newsletter Original
<a href="http://www.flickr.com/photos/makesomenoise/2766900275/" title="Make Some Noise, on Flickr"><img height="180" width="240" alt="" src="http://farm4.static.flickr.com/3015/2766900275_61f60ccdcc_m.jpg" title="Photo from NT" />
Result:
href="http://www.flickr.com/photos/makesomenoise/2766900275/"> height="180"
width="240" title="Photo from NT"
src="http://farm4.static.flickr.com/3015/2766900275_61f60ccdcc_m.jpg" alt=""
/>
Comments
Comment #1
vm commentedComment #2
tschewe commentedI've been seeing the same problem with the a href difficulty, although the first time I sent a message the unsubscribe link appeared properly at the end of my Simplenews newsletter.
I managed to get img to go properly by removing all modifiers leaving only img src="http://my/image/link.htm"
Comment #3
hayesr commentedI'm getting the same thing. Does anyone know why?
Comment #4
hayesr commentedI tried creating a filter that didn't actually filter anything, but then I only got "n/a" in my newsletter. The replacement tokens such as "!uri" and "!uri_brief" work fine, but the unsubscribe link gets mutilated.
Comment #5
yosemite commentedsame here
just installed simple news and when the email newsletter is sent with images it the image tag is missing a "< img at the start
and no image is displayed in the email
Comment #6
yurg commentedSubscribing - just faced with same behaviour. Error reproducion:
1. Create newsletter node
2. Add image via Fckeditor + IMCE
After some tests found the way to send images by manually editing html output.
FCKeditor and IMCE produces image inserting code as follow:
Delete alt="" width="" height="" attributes, and you will be able to send properly formed email with embedded image inside.
Comment #7
oscarelloo commentedSame issue here.
I tried Yur's image solution, and that worked. But I can't get links to work. I hope this will be fixed soon!
Comment #8
oscarelloo commentedI did some more testing..
Links will work if you change the HTML setting to "Filtered" in the MIME settings. If you then allow
<img>tags in the global settings for HTML format, both images and links will show up in the newsletters when added with FCKEditor (I have not tested this with any other WYSIWYG module though). Not a perfect solution, but it works!/ Oscar
Comment #9
jerdavisUnable to reproduce this here with mimemail HEAD + Simplenews dev snapshot. Please grab the latest mimemail snapshot and let me know if you still have this issue.
Jer
Comment #10
conniec commentedJust gave it a try on a clean install. I have the problem desribed above. Can confirm that #6 and #8 worked as work-arounds.
Connie
Comment #11
raindrop commentedHow do you format links on nodes?
Comment #12
sstella commentedThe same thing is happening to me
Links are showing the same problem of trimmed html, but the error on images happens only if I try to use images from the website where simplenews/mimemail are running (I use the complete url).
If I insert in the text area an image from another website I receive it correctly on the email.
The file system settings are set to public so it is not a matter of private file download.
Anyone as any idea of what the problem could be?
Comment #13
Moophz commentedHello,
I am not a drupal expert but i guess i know what is causing this.
If you examine the source of the email received you notice a
'<br>'tag inserted between the'<a'and the'href'(the 'br is replacing the 'space')e.g :
'<a<br>href'caused by exceeded line characters trying to break into a new line.This will result as : 'href="..." to be left alone because the client does not understand a tag
'<a'alone without parameters.I guess this is a bug from Mime mail because it's truncating the line characters to some limited number of characters that comes not compatible with HTML tags.
Solution : Try to use l() function.
Comment #14
rsbecker commentedI have found a another problem related to this one. I am using image_caption in conjunction with FCKeditor and Simplenews. I just went live with an email newsletter and some recipients got all photos, but others got newsletters missing some photos. From the reported incidents (only a few), the same 2 photos were missing from each recipient's email. I have not yet looked at the code to see what is different about the issues they received.
But before I went live I knew captions appeared in my online newsletters and the printer-friendly versions of them. But they do not appear in the email versions. It appears that Mime Mail is not handling the class="caption" within the img tags. Changing the Mime Mail html and input filter settings as suggested in #8 does not fix this problem.
Comment #15
sgabe commentedIs this issue still valid?
Comment #16
tic2000 commentedI had a similar issue and in my case the culprit was a preprocess hook in a custom module.
Comment #17
sgabe commentedCannot be reproduced and no activity.