0

I am sending email with PHP script which is working fine, but when I use TinyMCE as editor it's not properly working. When I use a tag with server file url, it's not available, in img tag image now show in email. It's delete href and src attributes from email, I check on Gmail and Yahoo email id. what should I do now?

This code works very well for HTML contents. Here is code:-

   $headers   = array();
   $headers[] = "MIME-Version: 1.0";
   $headers[] = "From: <$from>";
   $headers[] = "Content-type: text/html; charset=iso-8859-1";
   mail($to, $subject, $message, implode("\r\n", $headers));
Ritesh
  • 1
  • 4
  • 1
    Please show your code. – Marcel Korpel May 26 '13 at 11:11
  • Use the Absolute Path ie http://www.yoursite.com/path_to_file instead of relative path to file – sAnS May 26 '13 at 11:14
  • see also: http://stackoverflow.com/questions/6266487/tinymce-allow-all-html-tag – Bass Jobsen May 26 '13 at 18:19
  • Sorry for delay reply, but I am using this code to send email. Here is :- $headers = array(); $headers[] = "MIME-Version: 1.0"; $headers[] = "From: $from"; $headers[] = "Content-type: text/html; charset=iso-8859-1"; mail($to, $subject, $message, implode("\r\n", $headers)); – Ritesh May 30 '13 at 11:51

0 Answers0