1

Topic: image & mail

first of all: im german so please forgive me my language mistakes smile
I am getting nuts!
I use the tinymce wysiwig editor vor a newsletter system. a user can prepare the newsletter via tinymce editor (text formating, image including, etc.).
everything works great, in the wysiwig mode, the preview and html preview but if I send the newsletter via php (mail() --> html mail) the images dont appear in the html mail. its no path problem the problem with relative pathes is solved. the problem is the image pathes look like this:
"http://www.blbla.de/blala/thepicture.jpg"
( THE BACHSLASHES!!!).

because of the backslashes the images are hidden. How to solve this problem? please help me im getting insane


:shock:

2

Re: image & mail

This is most likely due to PHPs magic qotes option. By default PHP converts all " '  into " ' \. You can check if it's server releated by trying to post to the test page at http://tinymce.moxiecode.com/dump.php?example=true.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: image & mail

Use this with saving in php

        if (!get_magic_quotes_gpc())
         {
          $tekst = addslashes($tekst);