Forum Moderators: coopster

Message Too Old, No Replies

How to include a click-able link into an email

using mail() and Content-Type:text/plain

         

waldemar

12:13 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



I need to send mails via php mail() that contain a clickable link but I am little clueless how to accomplish this inside a text/plain mail...

I read about some multipart content-type, so it would be possible to include an <a href=""></a>. Is this the (only?) way to go?

emailtools

12:41 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



If it's a text-only email you don't need HTML tags. Just start the link with http:// to make it clickable.

Multipart emails send text and HTML versions together - you would only use HTML tags in the HTML portion of the message.

waldemar

1:11 pm on Jul 25, 2003 (gmt 0)

10+ Year Member



I understand. Thanks!

vincevincevince

6:17 pm on Jul 25, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



multipart is a good option - html displaying clients will see all the nice things you put in, and plain text only capable clients will see the plain text.

personally, i just output html as people who insist on plaintext only email clients are the same ones who can easily read the text despite a few tags around it :p

in plaintext, enclose your urls in < > which will make (in most clients) them not break across lines.