Posted by ShaneOnABike on October 9, 2008 at 11:50pm
Jump to:
| Project: | Mime Mail |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (cannot reproduce) |
Issue Summary
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
#1
#2
I'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"
#3
I'm getting the same thing. Does anyone know why?
#4
I 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.
#5
same 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
#6
Subscribing - 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:
<img alt="" width="" height="" src="">Delete alt="" width="" height="" attributes, and you will be able to send properly formed email with embedded image inside.
#7
Same 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!
#8
I 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
#9
Unable 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
#10
Just 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
#11
How do you format links on nodes?
#12
The 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?
#13
Hello,
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.
#14
I 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.
#15
Is this issue still valid?
#16
I had a similar issue and in my case the culprit was a preprocess hook in a custom module.
#17
Cannot be reproduced and no activity.