ziiweb ziiweb - 1 year ago 42
PHP Question

PHP: how to create a link inside a body of a text email?

I have a .php that contents the body of a text email.

In that body I want to create a link that when the user receives the email can be clicked.

How to create that link?



Answer Source

If it is as simple as your question sounds then..

echo '<a href="http://yourdomain.com/link.html">Click Here</a>';

The HTML a tag will do them job.

This is assuming that youu are using a HTML based email, if you are using plain text then I would suggest just typing in the URL