Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default malformed url

    I am sending email from apache using mail(). In the email I am sending a
    url. The url is rather long and consequently the email client is adding
    newlines to the url because it is exceeding some preset line limit. Is
    there a way to ensure that a long url is not malformed?

    Thanks, Mike


    Michael G Guest

  2. Similar Questions and Discussions

    1. Malformed URL trying to place multimedia content
      I create a blank ID document, and then try to place an swf file and get the error message "Download failed due to malformed URL". The same thing...
    2. Can't Update to 7.01 - malformed server response
      I am trying to update the CF from 7.0.0 to the "ColdFusion MX 7 Updater (7.0.1) ". I go to CF Admin "System Information " and in Update File, I...
    3. HTTPService Fault: An XML element was malformed
      I'm new to Flex and encountered this error. I have a datagrid that gets populated from an HTTP Service call.I traced it to find that it occurs only...
    4. #26160 [NEW]: imap_fetch_overview crashes on certain malformed messages
      From: dkoopman at godaddy dot com Operating system: RH 9.0 PHP version: 4.3.2 PHP Bug Type: Reproducible crash Bug...
    5. malformed header
      Hi, I'm trying my first perl script on a Unix server, but without any success! The script (codice.pl) is something like this: ...
  3. #2

    Default Re: malformed url

    On Mon, 12 Jan 2004 08:22:47 -0700, "Michael G" <mike-g@montana.com>
    wrote:
    >I am sending email from apache using mail(). In the email I am sending a
    >url. The url is rather long and consequently the email client is adding
    >newlines to the url because it is exceeding some preset line limit. Is
    >there a way to ensure that a long url is not malformed?
    >
    >Thanks, Mike
    This is more likely the email client wrapping the line than PHP. Can
    you view the raw source of email?


    Tyrone Slothrop Guest

  4. #3

    Default Re: malformed url


    "Hans Kadans" <hansie@kadansie.bibi> wrote in message
    news:_SzMb.8847$Hf3.3107936@phobos.telenet-ops.be...
    > <html>
    > <a href = "verrrry longgg urlll">verrry longg urllll</a>
    > </html>
    > ---
    > would work
    >
    That would be ok, I think, as long as the client was reading in a mode other
    than simple text. I'll try it.

    Thanks, Mike


    Michael Gaab Guest

  5. #4

    Default Re: malformed url


    "Michael G" <mike-g@montana.com> schreef in bericht
    news:4002bbb7_2@127.0.0.1...
    > I am sending email from apache using mail(). In the email I am sending a
    > url. The url is rather long and consequently the email client is adding
    > newlines to the url because it is exceeding some preset line limit. Is
    > there a way to ensure that a long url is not malformed?
    Are you using html and tags or just plain text?

    ---
    <html>
    <a href = "verrrry longgg urlll">verrry longg urllll</a>
    </html>
    ---
    would work

    ---
    verrrry longgg urllll
    ---
    would give the same visual effect in your mailclient, but probably won't
    work


    Hans Kadans Guest

  6. #5

    Default Re: malformed url


    "Tyrone Slothrop" <ts@paranoids.com> wrote in message
    > This is more likely the email client wrapping the line than PHP. Can
    > you view the raw source of email?
    I am not sure what you mean. This might help. We are building a URL using
    php and the sending out the URL via mail(). The URL is pretty long because
    it contains 5 fields.

    Thanks, Mike


    Michael Gaab Guest

  7. #6

    Default Re: malformed url


    "Michael G" <mike-g@montana.com> wrote in message
    news:4002bbb7_2@127.0.0.1...
    > I am sending email from apache using mail(). In the email I am sending a
    > url. The url is rather long and consequently the email client is adding
    > newlines to the url because it is exceeding some preset line limit. Is
    > there a way to ensure that a long url is not malformed?
    >
    You could send the mail with quoted-prinable encoding (see imap_8bit
    function) or use a short URL service like [url]http://tinyurl.com/[/url]

    Regarding the qp encoding, here's a quick sample:

    $headers = "Content-Transfer-Encoding: quoted-printable";
    $msg = <<<EOM
    this is al loooooooooooooooooooooooooooooooooooong URL
    EOM;

    mail($to, $subject, imap_8bit($msg), $headers);

    When you don't have the imap extension installed, there are quite a lot
    classes available who will do this type of encoding without it.


    HTH,
    JW



    Janwillem Borleffs Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139