<div dir="ltr"><div><div>Hi Alan,<br><br></div>Thanks for your reply. I will probably opt for attaching the reports as pdfs.<br><br></div>Thanks<br></div><div class="gmail_extra"><br><div class="gmail_quote">2016-12-26 13:15 GMT-06:00 Alan Mead <span dir="ltr"><<a href="mailto:amead2@alanmead.org" target="_blank">amead2@alanmead.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    You haven't given us enough information to know where the WS is
    going, so any answer is speculative. But if the WS is being removed
    and you fix that bug, then if you send the email as HTML with the
    text wrapped in PRE tags
    ("<pre>YOUR-TEXT-GOES-HERE</<wbr>pre>") it should solve this
    problem. You could also use HTML tables (this is actually what
    they're for) but in order to do so, you would need to parse the
    information into cells.<br>
    <br>
    These solutions may create new problems, like the text may wrap
    funny for the recipient. Also, most clients use an ugly serif font
    to display text in PRE tags. It's extremely hard to know what an
    email is going to look like for the recipient unless you know what
    software the recipient uses to read email. Most of us use multiple
    devices to read email these days...<br>
    <br>
    Using MIME::Lite makes it easy to attach files.  You could also
    attach these details in a format that will render correctly, like
    CSV (or lots of other choices, like as an image, PDF, etc.).<br>
    <br>
    -Alan<div><div class="h5"><br>
    <br>
    <br>
    <div class="m_7946306362511047664moz-cite-prefix">On 12/26/2016 12:40 PM, Richard Reina
      wrote:<br>
    </div>
    </div></div><blockquote type="cite"><div><div class="h5">
      <div dir="ltr">
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>I have a perl script that reads a flat file and
                    sends it's contents in a text email via Mime::Lite.
                    It works great except when there are whitespaces
                    that need to be preserved for alignment. For
                    example, If I have the following lines in the flat
                    file<br>
                    <br>
                  </div>
                  James Brown 123 Washington Ave Philadephia PA<br>
                </div>
                Kim      Smith  12 5th Ave                   New
                York     NY<br>
                <br>
              </div>
              In the received email the look like this.<br>
              <br>
              James Brown 123 Washington Ave Philadephia PA<br>
              Kim Smith 12 5th Ave New York NY<br>
              <br>
            </div>
            I have also tried converting the email to HTML which does
            not help. Any ideas what approach I should take into order
            to get these messages to format correctly?<br>
            <br>
          </div>
          Thanks.<br>
          <br>
        </div>
        Richard<br>
      </div>
      <br>
      <fieldset class="m_7946306362511047664mimeAttachmentHeader"></fieldset>
      <br>
      </div></div><pre>______________________________<wbr>_________________
Chicago-talk mailing list
<a class="m_7946306362511047664moz-txt-link-abbreviated" href="mailto:Chicago-talk@pm.org" target="_blank">Chicago-talk@pm.org</a>
<a class="m_7946306362511047664moz-txt-link-freetext" href="http://mail.pm.org/mailman/listinfo/chicago-talk" target="_blank">http://mail.pm.org/mailman/<wbr>listinfo/chicago-talk</a></pre>
    </blockquote>
    <br>
    <pre class="m_7946306362511047664moz-signature" cols="72">-- 

Alan D. Mead, Ph.D.
President, Talent Algorithms Inc.

science + technology = better workers

+815.588.3846 (Office)
+267.334.4143 (Mobile)

<a class="m_7946306362511047664moz-txt-link-freetext" href="http://www.alanmead.org" target="_blank">http://www.alanmead.org</a>

I've... seen things you people wouldn't believe...
functions on fire in a copy of Orion.
I watched C-Sharp glitter in the dark near a programmable gate.
All those moments will be lost in time, like Ruby... on... Rails... Time for Pi.

          --"The Register" user Alister, applying the famous 
            "Blade Runner" speech to software development</pre>
  </div>

<br>______________________________<wbr>_________________<br>
Chicago-talk mailing list<br>
<a href="mailto:Chicago-talk@pm.org">Chicago-talk@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/chicago-talk" rel="noreferrer" target="_blank">http://mail.pm.org/mailman/<wbr>listinfo/chicago-talk</a><br></blockquote></div><br></div>