HTML formatted email errors

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Paul Lamonby

    #1

    HTML formatted email errors

    Hi,

    I am generating a HTML formatted email in PHP, but I am getting the
    most bizarre error, it will randomly delete characters out of the HTML
    code while in transit to the address, therefore generating errors in
    the final output.

    For instance, a "</td>" tag will become "/td>" or a URL will end in
    ".co.k", missing the "u". This seems to happen totally randomly from
    one try to the next throughout the code.

    Has anyone had or seen this problem before?

    The PHP code I use is straight forward, so no errors there.
    I am using a lot of absolute URL paths to images and spacer gifs in
    the email (about 20-30), is there a limit to what an email can handle?

    I would appreciate any insight anyone has.

    Cheers
    Paul
  • John Dunlop

    #2
    Re: HTML formatted email errors

    Paul Lamonby wrote:
    [color=blue]
    > I am generating a HTML formatted email in PHP,[/color]

    Why?
    [color=blue]
    > but I am getting the most bizarre error, it will randomly delete
    > characters out of the HTML code while in transit to the address,[/color]

    [ ... ]
    [color=blue]
    > is there a limit to what an email can handle?[/color]

    Text lines may not exceed 1 000 characters.

    --
    Jock

    Comment

    • Brandon Blackmoor

      #3
      Re: HTML formatted email errors

      Paul Lamonby wrote:[color=blue]
      >
      > I am generating a HTML formatted email in PHP[/color]

      That's your problem right there. Email is text, not HTML.

      bblackmoor
      2004-06-14

      Comment

      • Paul Lamonby

        #4
        Re: HTML formatted email errors

        Thanks for the constructive comments, very helpful!
        I too am not a fan of HTML formatted emails, but why create MIME types
        in email and not use them? If a client requires HTML formatted emails
        then thats what I will supply. ( I assume thats your direction of
        comment. )

        Paul

        Brandon Blackmoor <bblackmoor@spa mcop.net> wrote in message news:<2j70juFud p32U2@uni-berlin.de>...[color=blue]
        > Paul Lamonby wrote:[color=green]
        > >
        > > I am generating a HTML formatted email in PHP[/color]
        >
        > That's your problem right there. Email is text, not HTML.
        >
        > bblackmoor
        > 2004-06-14[/color]

        Comment

        • John Dunlop

          #5
          Re: HTML formatted email errors

          Paul Lamonby wrote upside-down:
          [color=blue]
          > I too am not a fan of HTML formatted emails, but why create MIME types
          > in email and not use them?[/color]

          I make use of MIME and have nothing to do with so-called HTML email.
          [color=blue]
          > If a client requires HTML formatted emails then thats what I will supply.[/color]

          Yeah,

          The son-of-a-bitch,
          Is probably rich,
          So smile with all your might.

          (Noel Coward)

          --
          Jock

          Comment

          • Manuel Lemos

            #6
            Re: HTML formatted email errors

            Hello,

            On 06/15/2004 09:22 AM, Paul Lamonby wrote:[color=blue]
            > Thanks for the constructive comments, very helpful!
            > I too am not a fan of HTML formatted emails, but why create MIME types
            > in email and not use them? If a client requires HTML formatted emails
            > then thats what I will supply. ( I assume thats your direction of
            > comment. )[/color]

            I think most people ignore that you can send a message with plain text
            and HTML versions in the same body message using MIME
            multipart/alternative type. If you send your HTML messages like this,
            there is no problem because you can still make your message readable
            with e-mail clients that do not support text, even if the plain text
            part says that this is an HTML message.

            This is not a trivial task but if you want to send messages this way,
            you may want to try this class to that makes it very simple:

            http://www.phpclasses.org/mimemessage


            --

            Regards,
            Manuel Lemos

            PHP Classes - Free ready to use OOP components written in PHP
            http://www.phpclasses.org/

            PHP Reviews - Reviews of PHP books and other products
            http://www.phpclasses.org/reviews/

            Metastorage - Data object relational mapping layer generator

            Comment

            Working...