Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending php email with hyperlinks inbedded

0 views
Skip to first unread message

Bill

unread,
Jun 4, 2004, 4:52:29 PM6/4/04
to
I'm sending an autoresponder to our customers, through the php mail
function. However, when I add a hyperlink into the $message, instead
of a live link appearing, all that appears is the html code, without
the link.

What am I doing wrong?

Thanks.

Manuel Lemos

unread,
Jun 4, 2004, 5:23:12 PM6/4/04
to
Hello,

On 06/04/2004 05:52 PM, Bill wrote:
> I'm sending an autoresponder to our customers, through the php mail
> function. However, when I add a hyperlink into the $message, instead
> of a live link appearing, all that appears is the html code, without
> the link.

To send HTML messages you need to encode them properly. This means you
need to have an alternative text part to the HTML part and both parts
must not contain 8 bit characters without being encoded preferrable with
quoted-printable encoding.

You may want to try this class to compose and send proper HTML messages.
Take a look at the example:

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
http://www.meta-language.net/metastorage.html

0 new messages