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 #171896 is a reply to message #171740] Thu, 20 January 2011 13:36 Go to previous messageGo to previous message
Peter H. Coffin is currently offline  Peter H. Coffin
Messages: 245
Registered: September 2010
Karma:
Senior Member
On Wed, 19 Jan 2011 18:12:16 -0800 (PST), jwcarlton wrote:
> I'm sending an HTML email through PHP, and the email includes a
> website link. Like so:
>
> <a href="http://www.example.com/whatever/?action=something&id=4300">
> http://www.example.com/whatever/?action=something&id=4300
> </a>
>
> The problem I'm having is that the link is showing up in the email
> like this:
>
> http://www.example.com/whatever/?action=something&id300
>
> Notice the last variable is "id300" instead of "id=4300".
>
> I've tried using urlencode(), and while this does fix the actual link,
> the displayed URL has the coded symbols. What function should I be
> using to show the website link correctly?

Turn off quoted-printable in your MIME encoding. If you're sending HTML,
you don't need it anyway. Proper HTML is already 7-bit clean.

--
67. No matter how many shorts we have in the system, my guards will be
instructed to treat every surveillance camera malfunction as a
full-scale emergency.
--Peter Anspach's list of things to do as an Evil Overlord
[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: Sun Nov 10 13:00:01 GMT 2024

Total time taken to generate the page: 0.04073 seconds