Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I've had some experience trying to generate/send html newsletters, and gmail (and possibly other web-based email clients) will modify your html in ways beyond your control. These modifications are not documented (at least, no where I've been able to find), and may change without warning. Modifications usually involved things like stripping out javascript, and most css. For formatting, put everything into a table (think web layout before css was invented...). And gmail apparently strips all non-critical whitespace, so your original html becomes one long line of text, then it inserts linebreaks every 60 characters or so (sort of like Text::Wrap, I'm guessing). This will sometimes result in a non-printable character inside of an anchor tag's href attribute, which breaks the link. You can fix this by inserting bogus non-breakable spaces in your html upstream (hopefully at the end of a line where it won't show) - this is like "padding" that you can use to "bump" the bad characters outside of the link. But it's like dominoes: fixing one may break all the ones that follow. Previously, my newsletter looked great everywhere except from inside gmail. Now, I can make it look good in gmail, but it's a painful, tedious process. If anyone has a better method, I'd like to hear about it, too.


In reply to Re: gmail -- sending out html messages by scorpio17
in thread gmail -- sending out html messages by iaw4

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-04-19 23:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found