php mail() randomly appends "%20" to my emails

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

    php mail() randomly appends "%20" to my emails

    Hi everyone,

    I have a mailing list generated from php and sent out by mail().

    But i often have broken graphics due to the fact that it randomly
    appends %20 to the html output!

    Anybody has the same issue?

  • Bert Schulze

    #2
    Re: php mail() randomly appends "%20&qu ot; to my emails

    On 28 Jun., 12:37, stevong <stev...@gmail. comwrote:
    Hi everyone,
    >
    I have a mailing list generated from php and sent out by mail().
    >
    But i often have broken graphics due to the fact that it randomly
    appends %20 to the html output!
    >
    Anybody has the same issue?
    I didnt notice something like that but it sounds like a multipart
    or MIMIE issue to me. Check out http://www.php.net/mail for some
    inspiration.

    Comment

    • Toby A Inkster

      #3
      Re: php mail() randomly appends &quot;%20&qu ot; to my emails

      stevong wrote:
      But i often have broken graphics due to the fact that it randomly
      appends %20 to the html output!
      It seems more likely that the *input* HTML is broken. Check there's no
      whitespace between the URL and the closing quote mark.

      --
      Toby A Inkster BSc (Hons) ARCS
      [Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
      [OS: Linux 2.6.12-12mdksmp, up 7 days, 16:07.]

      Long-Awaited Zeldman Article

      Comment

      • Tim Roberts

        #4
        Re: php mail() randomly appends &quot;%20&qu ot; to my emails

        stevong <stevong@gmail. comwrote:
        >
        >I have a mailing list generated from php and sent out by mail().
        >
        >But i often have broken graphics due to the fact that it randomly
        >appends %20 to the html output!
        >
        >Anybody has the same issue?
        Are you claiming that the text is quoted-printable? Are you sure it is
        really quoted-printable?
        --
        Tim Roberts, timr@probo.com
        Providenza & Boekelheide, Inc.

        Comment

        • Lars Eighner

          #5
          Re: php mail() randomly appends &quot;%20&qu ot; to my emails

          In our last episode, <1183027068.286 012.25340@g37g2 000prf.googlegr oups.com>,
          the lovely and talented stevong broadcast on comp.lang.php:
          Hi everyone,
          I have a mailing list generated from php and sent out by mail().
          But i often have broken graphics due to the fact that it randomly
          appends %20 to the html output!
          Anybody has the same issue?
          You haven't given us any code or even examples of the problem. Nonetheless
          I suspect you are somehow urlencoding spaces in filenames or paths ---
          perhaps ones you don't realized are there because they are at the end,
          so 'some/path/ ' . 'mypic.jpg' gets urlencoded to /some/path/%20mypic.jpg'.
          Try using 'trim' on everything you can think of, and don't urlencode urls
          unless you have reason to think they may have characters that need escaping.

          If that doesn't seem to do it, you might try posting some actual examples of
          the errors you get or even suspicious areas of code.

          And, oh, yeah, people with more brains than free time to read spam, filter
          their mail to send html mail right to the old bit bucket.

          --
          Lars Eighner <http://larseighner.com/ <http://myspace.com/larseighner>
          Countdown: 571 days to go.
          Owing to googlegroups not screening users to eliminate spammers and other
          USENET abusers, I do not see most posts from googlegroups.

          Comment

          Working...