Hi all,
I am using the latest newsletter module + smtp module.
My newsletters appear with html tags, not in the html format.
I have all narrowed it down to the text in the header: Content-Type: text/plain; charset="utf-8" and not Content-Type: text/html; charset="utf-8".
Now, applying the fix for the "mail_system" variable works. The newsletters appear in html format, but I get and error:
PDOException: in field_sql_storage_field_storage_write() (line 448 of /var/www/html/test/modules/field/modules/field_sql_storage/field_sql_storage.module).
and also the newsletter in report appear as sending (not sent) - so every time i run cron they get resent.
I also removed the smtp and newsletter modules and re-installed them, but i still get the same error.
More digging into the problem, and i can see the error is caused by this function : addNewsletterUrlQuery in newsletter.mail.inc.
Specific line: @$dom->loadHTML($message['body']);
(i have ckeditor installed)
Any help much appreciated.
Comments
Comment #0.0
Drupppie CreditAttribution: Drupppie commentedFound the source of the problem
Comment #0.1
Drupppie CreditAttribution: Drupppie commentedmore info
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commented#1761148: Newsletter Set For Daily, Sends With Every Cron
Comment #2
Drupppie CreditAttribution: Drupppie commentedComment #3
WebCrusader CreditAttribution: WebCrusader commentedIf you change row 39 newsletter.mail.inc to:
return html_entity_decode($dom->saveHTML(), ENT_COMPAT, 'UTF-8');
it fixes the problem with html editors
Comment #4
ParisLiakos CreditAttribution: ParisLiakos commentedok, i committed this change.
decode_entities drupal function does exactly this
http://drupalcode.org/project/newsletter.git/blobdiff/96f38a4552ff57ddf6...
Comment #4.0
ParisLiakos CreditAttribution: ParisLiakos commentedmore info