email - Sending html from summernote(jquery) to php mail -


i'm using http://summernote.org/, , want html summernote , show email. far i'm getting email:

edição de ' . . '' . <p>ascds ds dds<img src=\"http://www.url.com.br/admin/img/02522a2b2726fb0a03bb19f2d8d9524d.png\" style=\"width: 300px;\"></p><img src=\"http://www.url.com/checkopen.php\" style=\"width:1px;height:1px\"/>; 

and elements tab:

<div> edição de ' .  . '<br>' . &lt;p&gt;ascds ds dds&lt;img src=\"<a href="http://www.url.com.br/admin/img/02522a2b2726fb0a03bb19f2d8d9524d.png%5c" target="_blank">http://www.<wbr>url.com.br/<wbr>admin/img/<wbr>02522a2b2726fb0a03bb19f2d8d952<wbr>4d.png\</a>" style=\"width: 300px;\"&gt;&lt;/p&gt;&lt;img src=\"<a href="http://www.url.com/checkopen.php%5c" target="_blank">http://www.<wbr>url.com/<wbr>checkopen.php\</a>" style=\"width:1px;height:1px\"<wbr>/&gt;; 

sending via jquery.ajax:

data: 'texto=' + $('#texto').code() 

treating on php:

htmlspecialchars(urldecode($_post['texto'])); 

and mail function doing this:

$to = $show['email']; $subject = $titulo; $mime_boundary = '_x' . sha1(time()) . 'x'; $headers = <<<headers from: test <email@example.com> mime-version: 1.0 content-type: multipart/alternative; boundary="php-alt$mime_boundary" headers; $message = <<<message--php-alt$mime_boundary content-type: text/html; charset=iso-8859-1 content-transfer-encoding: 7bit' <html><body> edição de ' . $data . '<br/>' . $content; </body></html>--php-alt$mime_boundary-- message; mail($to, $subject, $message, $headers); 

according what's showing in chrome console above, need correct problems? try replace think not going work properly.


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -