Email test from Template Bug? | Community
Skip to main content
July 13, 2017
Question

Email test from Template Bug?

  • July 13, 2017
  • 2 replies
  • 3245 views

I am not sure if this is a bug on Marketo's side or something wrong with my code.

When working on an email template and send a test from the template editor, the result looks broken vs when I send a test after approving the template.

I tried to narrow down the code to hopefully show my issue: (also attached)

<!DOCTYPE html>

<html >

  <head>

    <title>Test</title>

    </head>

  <body style="width: 100% !important;">

    <table border="0" cellpadding="0" cellspacing="0" width="100%">

  <tbody>

        <tr>

          <td align="center" valign="top" bgcolor="#F3F6F9" width="740" class="mktoContainer" id="bodycontainer" mktoname="Body Container">

        

            <table width="740" border="0" cellspacing="0" cellpadding="0" class="100p mktoModule" id="heronav" mktoname="Hero Nav Section">

              <tbody>

                <tr>

                  <td bgcolor="#000000" valign="top" class="100p" width="740" style="border-collapse: collapse; padding: 0; padding: 30px 40px 30px 40px;">

                    <table border="0" cellspacing="0" cellpadding="0" width="660" class="100p" style="border-collapse: collapse;">

                      <tbody>

                        <tr>

                          <td align="left" width="100%" style="border-collapse: collapse; padding: 0; "></td>

                        </tr>

                      </tbody>

                    </table> </td>

                </tr>

              </tbody>

            </table>

            <!-- End Hero Section -->

           </td>

        </tr>

     </tbody>

    </table> 

  </body>

</html>

When I send from the menu in the template editor:

I get this:

Two black bars, the top one is weirdly full width

When I approve and close it first and then send the test I get the proper format:

A single not full width black bar which is what it is supposed to be.

This is a simplified model of a larger problem I have been having of templates sending broken versions when sending tests, but working fine when sending as approved templates.

Anyone else having this issue?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Casey_Grimes2
Level 10
July 13, 2017

Hi Andrew,

I'll be honest--I can't seem to replicate this exactly. The closest I get is ton Comcast webmail, where it just fails to render altogether from the template send. What are you seeing this appear in?

July 13, 2017

It has showed up in Gmail. But I have also run it through litmus and gotten the same results.

Casey_Grimes2
Level 10
July 13, 2017

Bizarre--I tried it in Litmus Builder as well as sending template and standard versions.

That being said, there are a couple of things that jump out here: you declare padding twice in your .100p td, and even declaring padding on something like this is a little odd. Generally, the easier method is to just use one container table that holds your fixed width (and adjustment), and then use a percentage width to calculate the bordering you're doing with the padding in this case. Same visual effect without having to worry about client compatibility.

Generally, when I've seen discrepancies between template and individual email, it happens when there's variables or such involved, so not sure what's going on here.

Danielle_Sledge
Level 2
July 13, 2017

The code you provided is valid, and when I place it in Dreamweaver it appears correct. Have you taken a look at the template code?

July 13, 2017

Yep, the html works fine for any send except for from the template editor. Sent from gmail or even sent from Marketo anywhere but from in the template editor I don't have a problem. Just when currently editing template code do I have the issue.