Module

Archived
Forum
(read-only)

FireMail

ExpressionEngine 2

Back to this add-on's main page
View Other Add-ons From PutYourLightsOn

     

Importing template changes markup

Support (Resolved)

Werner Gusset
Werner Gusset

Teh head of the remplate is like

<html>
<
head>
 <
title>Newsletter from blabla</title>
 <
meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
</
head>
<
body marginheight="0" topmargin="0" marginwidth="0" bgcolor="#FFF3E0" leftmargin="0" style="background-color: #FFF3E0;">

<
table style="background-color: #FFF3E0;"

When it is imported into Firemail and sent to above code looks like

<p>
 <
title></title>
</
p>
<
p>
 <
meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type" />
</
p>
<
table style="background-color: #FFF3E0;"

Also end of /body and /html are gone.

It’s EE 2.5.3 and FireMail 1.8.2, tested in Chrome and FF.

PutYourLightsOn
# 1
Developer
PutYourLightsOn

they are stripped out by the wysiwyg editor but regardless of that html, head and body tags should never be used in emails.

Werner Gusset
# 2
Werner Gusset

I am a bit confused. HTML Newsletter I receive from other ressources do have those tags. All newsletter templates you can get, free or bought, have those tags.

In an other old install of FireMail (1.7 something) I have almost the same code and there it goes ok.

And when you click for a display of the newsletter in your browser you would need t6hose tags too.

Do I completely missunderstand the concept of html newsletters?

Peter Ripley
# 3
Peter Ripley

I came here to ask the same question.

I am seeing:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<
html xmlns="http://www.w3.org/1999/xhtml">
<
head>
 <
meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
 <
title>FastTrack Newsletter</title>
 <
style type="text/css">
 <!--
  .
ExternalClass{display:block !important;}
  
.yshortcuts, .yshortcuts a, .yshortcuts a:link, .yshortcuts a:visited, .yshortcuts a:hover, .yshortcuts a span { color:#313131; text-decoration: none !important; border-bottom: none !important; background: none !important;}
 
-->
 </
style>
</
head>

<
body marginheight="0" marginwidth="0" leftmargin="0" topmargin="0" bgcolor="#ffffff"

 

Replaced in the WYSIWG editor with the following:

<p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 <
meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
</
p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 &
nbsp;</p>
<
p>
 <
title></title>
 <
style type="text/css">
<!--
  .
ExternalClass{display:block !important;}
  
.yshortcuts, .yshortcuts a, .yshortcuts a:link, .yshortcuts a:visited, .yshortcuts a:hover, .yshortcuts a span { color:#313131; text-decoration: none !important; border-bottom: none !important; background: none !important;}
 
--> </style>
</
p

 

All those paragraph tags move my content way down the page!  Would I be better off removing all that head content and the body tag?  Is any of it meant to be retained as a best practice?  The style rules are meant to handle yahoo mail IIRC.

Why is the editor removing my <title> and inserting one of it’s own (blank)?

Peter Ripley
# 4
Peter Ripley

Ah! I found the origin of some of the extraneous paragraph tags!!!

In the editor every time I switch back and forth between source and wysywg views a new paragraph tag is added.

This seems like a bug, albeit a minor one.

Werner Gusset
# 5
Werner Gusset
Ben @PutYourLightsOn - 15 November 2012 11:32 AM

they are stripped out by the wysiwyg editor but regardless of that html, head and body tags should never be used in emails.

I now have learnt this while reading some articles.

thanks for pointing to the direction.

PutYourLightsOn
# 6
Developer
PutYourLightsOn

thanks for the responses guys, i will look into the extraneous paragraph tags bug and respond in this post