I am calling several views blocks from my simplenews template. The problem i am having is that the html in the newsletter i recieve in my email is different then the html that is presented when i look at the newsletter on the website. This is causing all sorts of funkyness with how its displayed. What am i doing wrong here?

This is from my mail reader

<h2>Featured articles</h2> 
<div class="view view-newsletter-lead-story-teaser"> 
  <div class="view-content view-content-newsletter-lead-story-teaser">
    <div class="item-list"> <div class="view-item view-item-newsletter-lead-story-teaser">
      <div class="view-field view-data-term-node-2-name">
          <li class="first last taxonomy_term_2"> 
              <a style="color: #FFFF00; font-size: 16px;" 
                     href="http://www2.nuvo.net/category/categories/news" 
                     rel="tag" title="" class="taxonomy_term_2">News</a> 
          </li>
       </div> 
    <div class="view-field view-data-node-title">
       <a style="color: #FFFF00; font-size: 16px;" 
              href="http://www2.nuvo.net/news/article/2008-year-review">2008 Year in Review </a>
   </div> 
   <div class="view-field view-data-node-data-field-lead-story-teaser-field-lead-story-teaser-value"></div> 
   <div class="view-field view-data-users-name"> 
      <a style="color: #FFFF00; font-size: 16px;" 
             href="http://www2.nuvo.net/users/editors" 
             title="View user profile.">NUVO Editors</a> 
   </div> 
</div> 

This is from the Web page



<h2>Featured articles</h2>
<div class='view view-newsletter-lead-story-teaser'>
  <div class='view-content view-content-newsletter-lead-story-teaser'>
    <div class="item-list">
      <div style="padding-bottom: 20px;">

	<h4 class="leadstory">
		<li  class="first last taxonomy_term_2">
			<a style='color: #FFFF00; font-size: 16px;' 
					href="/category/categories/news" rel="tag" 
					title="" class="taxonomy_term_2">News</a>
		</li>
		: <a style='color: #FFFF00; font-size: 16px;' 
			href="/news/article/2008-year-review">2008 Year in Review </a>
	</h4>
	By <a style='color: #FFFF00; font-size: 16px;' 
		href="/author/5" title="View user profile.">NUVO Editors</a>

	<p></p>
      </div>

Comments

TBarregren’s picture

Assigned: Unassigned » TBarregren
Status: Active » Fixed

Simplenews Template itself doesn't do anything with the HTML returned by the theming function. If you have the optional Emogrifyer installed, it will of course inline your CSS rules. But that is obviously not the problem here.

Since the discrepancies between the HTML of the web page and the e-mail is so big, you must do something very special in your mail template. I guess your problems lies there.

Feel free to reopen the issue if you need more assistance. But in that case you need to provide detailed information about what you have done.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.