CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Does CiviMail automatically handle <!DOCTYPE ....><html><head><body>
Pages: [1]

Author Topic: Does CiviMail automatically handle <!DOCTYPE ....><html><head><body>  (Read 290 times)

Clouded_Leopard

  • I’m new here
  • *
  • Posts: 1
  • Karma: 0
  • CiviCRM version: Don't Know
  • CMS version: Don't Know
  • MySQL version: Don't Know
  • PHP version: Don't Know
Does CiviMail automatically handle <!DOCTYPE ....><html><head><body>
January 06, 2015, 12:38:27 pm
Hi,

I'm sending out monthly html newsletters and trying to learn how to do it properly. When looking at the sample message in the documentation it shows html tags for: <!DOCTYPE ....><html><head><body> as would be in a normal web page.

However when I use CiviMail and paste the html code for the newsletter into the HTML Source Editor and click 'update' - while it updates the design etc into the WYSIWYG editor, when I click back into the HTML Source Editor it seems to have removed everything outside of and including the <body> tag.

Does CiviMail just take care of all those initial bits automatically? And is it ok for me to just leave them out in the first place?

jaapjansma

  • I post frequently
  • ***
  • Posts: 247
  • Karma: 9
    • CiviCoop
  • CiviCRM version: 4.4.2
  • CMS version: Drupal 7
  • MySQL version: 5
  • PHP version: 5.4
Re: Does CiviMail automatically handle <!DOCTYPE ....><html><head><body>
January 07, 2015, 12:40:16 am
Very good question. The best way to figure this out is to try it out.
Usually Wysiwyg editors are have some clean up functionality when the input gets saved. This is to remove unwanted html codes from the input. So it could be that the Wysiwyg editor is causing the removal but that is is highly recommded to not have this functionality but to insert the whole html page.
Developer at Edeveloper / CiviCoop

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • Does CiviMail automatically handle <!DOCTYPE ....><html><head><body>

This forum was archived on 2017-11-26.