Hi,
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?
Regards
Javi
Hi,
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?
Regards
Javi
if you use Content-type: text/html
its simple insert a tag in the body
simple code to send mail:
You can simply use a Tag as in HTML and that use that HTML for the content of your mail.
If it is as simple as your question sounds then..
<?php
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
If it is a plain-text email, you can't have links. The best you can hope for is to write out the url and hope that the mail-reader will convert it into a link for you.