[summary] Either sendmail or PERL is inserting ! in my HTML email ....

From: George Gallen (ggallen_at_slackinc.com)
Date: 08/22/03

  • Next message: Ron Bramblett: "Summary Changing IP on AS2000"
    Date: Fri, 22 Aug 2003 10:34:14 -0400
    To: "'tru64-unix-managers@ornl.gov'" <tru64-unix-managers@ornl.gov>
    
    

    As a couple people pointed out that sendmail will insert
    the ! after 1000 bytes line is reached. Which in this case
    looks like the culprit.

    I inserted a print MAIL "\n"; a couple times withing the
    HTML code, to break up the lines so they are under 1000 bytes.

    and magically, the ! disappeared.

    Thanks for the info.

    George

    >-----Original Message-----
    >From: George Gallen [mailto:ggallen@slackinc.com]
    >Sent: Friday, August 22, 2003 9:59 AM
    >To: 'tru64-unix-managers@ornl.gov'
    >Subject: Either sendmail or PERL is inserting ! in my HTML email....
    >
    >
    >Hi.
    >
    >I'm sending an HTML email using PERL (routine below).
    >in this case, it's on a PERL 5 and T64 3.2c, I don't think the
    > t64 being old has anything to do with it, as it also does it
    > on a Redhat 7.2 system with PERL 5.
    >
    >Apparantly x # of bytes into the email, something is inserting
    >an "!" in the middle of the email. It's not the HTML coding, as
    >if I add or remove characters, the ! doesn't follow, it stays in
    >the same offset spot.
    >
    >Has anyone had this occur before? Aside from trying to shift the
    >email so the ! falls in an appropriate spot :) any ideas on how to
    >fix (stop) this?
    >
    >I've tried breaking up the HTML coding into many lines of prints
    >so each line of print is no more than 70 characters. The ! gets
    >put in the email, whether I use one line of 600 or so bytes or
    >8 or 9 lines of 70 character maximums.
    >
    >I did a view source on the original HTML, then cut and pasted the
    >HTML from the view into the email below. Aside from the ! the
    >email looks identicle.
    >
    >Any ideas?
    >Thanks
    >
    >#!/usr/local/bin/perl
    >use CGI qw/:standard/;
    >my $PID = $$;
    >my $ml_pgm = '/usr/sbin/sendmail';
    >my $ml_to = 'ggallen@slackinc.com';
    >open (MAIL,"|$ml_pgm $ml_to") or die "Sendmail $ml_pgm $ml_to
    >would not open
    >:$ \n";
    >print MAIL "To: $ml_to\n";
    >print MAIL "From: webmaster\@return.com <webmaster\@return.com>\n";
    >print MAIL "Subject: This is an HTML test\n";
    >print MAIL "MIME-Version: 1.0\n";
    >print MAIL "Content-Type: text/html; charset=us-ascii\n\n";
    >print MAIL ".......HTML CODING.....";
    >close MAIL or die "Sendmail would not close :$\n";
    >
    >
    >George Gallen
    >Senior Programmer/Analyst
    >Accounting/Data Division
    >ggallen@slackinc.com
    >ph:856.848.1000 Ext 220
    >
    >SLACK Incorporated - An innovative information, education and
    >management
    >company
    >http://www.slackinc.com
    >

    George Gallen
    Senior Programmer/Analyst
    Accounting/Data Division
    ggallen@slackinc.com
    ph:856.848.1000 Ext 220

    SLACK Incorporated - An innovative information, education and management
    company
    http://www.slackinc.com


  • Next message: Ron Bramblett: "Summary Changing IP on AS2000"

    Relevant Pages

    • Re: How a correct mail looks like?
      ... n> html is the default ... n> the folks who email you need a little education. ... n> Stan Bischof ...
      (comp.os.linux.misc)
    • Re: Font Styles
      ... "Education" in Arial regular, blue, 20 pt. ... Instead I get the word "Education" in Arial Bold. ... Whole-site HTML validation, link checking and more ...
      (alt.html)
    • Re: HTML to PDF with formatting options
      ... HTML/CSS (at least - with a little education of the ... HTML is /lousy/ way of representing formatted text. ... PDF is useful in the reverse situation. ...
      (comp.lang.java.programmer)
    • Re: css table borders and spacing
      ... To further the education of mankind, ... and I cannot get the spacing to do what I want. ... In the following html page, I would like for the table with Sublink1, ...
      (alt.html)