Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6538665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:45:44+00:00 2026-05-25T10:45:44+00:00

I got some auto generated HMLT code working. Made sure it is correctly parsed

  • 0

I got some auto generated HMLT code working. Made sure it is correctly parsed by http://validator.w3.org/, and it is a working HTML4.01 Strict.

Now, when I embed this code in a email and send it to gmail, the result is quite adverse (messes up the formatting).

The code is quite long, and apparently only happens when it has such size. This tells me two things:

  • not worth putting a code snippet here
  • it is probably some conflicting tag, but still considered valid the parser

Would you guys know of any tool even more strict to validate my HTML? Maybe even something specific for gmail?

Or maybe, just some pro tip on what usually screws the code for gmail.

ps.: the code, although is long, is also quite simple, only a few tables and styles – I took some care in making sure used only “email friendly” tags and formats.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:45:45+00:00Added an answer on May 25, 2026 at 10:45 am

    All the answers here helped, but the actual problem was elsewhere.

    The problem was In the HTML as I thought, but not exactly in my HTML.

    Turns out the the email client will wrap lines too big before handling it to render, regardless if it is HTML code or whatever, more exactly, breaking tags in the middle – that explain why it was happening only when the report reached a certain length.

    What tipped me that was when I looked at the code generated by MailChimp (suggested by Alexandre Rafalovitch) and noticed it was formatted as quoted-printable, cropped at exactly 75chars for every line.

    After that was easy enough to do the same in my own code generator. Well, actually, I didn’t even format as quoted-printable, only made sure it would wrap too long lines by itself.

    Apart from that, for all I can tell, a HTML 4.01 Strict code will work pretty much fine in a Gmail client.

    Hope it helps post-1999 generations.

    cheers.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got some sample code from the net here: http://www.javadb.com/sending-a-post-request-with-parameters-from-a-java-class That works fine. It
Got some code that is not mine and its producing this warning atm: iehtmlwin.cpp(264)
I got some legacy code with that caption spread out as comment almost in
I got some legacy code that has this: <?PHP if(isset($_GET['pagina'])==homepage) { ?> HtmlCode1 <?php
I got some code from java httpurlconnection cutting off html and I am pretty
I like Eclipse's auto-indent function, but sometimes I've got some indentation I don't want
I got some problems with finding a bug in php/mysql application, and I wonder
I got some files, after an egrep command, like egrep -l -r '(this|that|those)' *
I got some weird error with response.redirect() and the project wasn't building at all..
I got some file sample.mt from client, and when i open info, it reveals

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.