FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Placing an URL in email
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Placing an URL in email [message #171884 is a reply to message #171748] Thu, 20 January 2011 08:23 Go to previous messageGo to previous message
alvaro.NOSPAMTHANX is currently offline  alvaro.NOSPAMTHANX
Messages: 277
Registered: September 2010
Karma:
Senior Member
El 20/01/2011 9:07, jwcarlton escribió/wrote:
> Here's what I'm using:
[...]
> $message = "------=MIME_BOUNDRY_message_parts\n";
> $message .= "Content-Type: text/html; charset=\"iso-8859-1\"\n";
> $message .= "Content-Transfer-Encoding: quoted-printable\n";
^^^^^^^^^^^^^^^^
> $message .= "\n";
>
> $message .= "<a href='http://www.example.com/whatever/?
> action=something&id=4300'>\n";
> $message .= "http://www.example.com/whatever/?
> action=something&id=4300\n";
> $message .= "</a>";
>
> $message .= "\n";
> $message .= "------=MIME_BOUNDRY_message_parts--\n";
> $message .= "\n";
>
> mail($to, $subject, $message, $headers);

You declare the encoding as quoted printable but you never encode it.
I'd expect to see quoted_printable_encode() somewhere.

Also, in HTML you must use &amp; to insert literal ampersands. Have a
look at htmlspecialchars().



--
-- http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
-- Mi sitio sobre programación web: http://borrame.com
-- Mi web de humor satinado: http://www.demogracia.com
--
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: hack
Next Topic: Using a heredoc in PHP as in Perl
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 26 11:43:11 GMT 2024

Total time taken to generate the page: 0.04337 seconds