I need to include some HTML things in PHP, for example to add link
in a message like this:
This is very basic: mail()
Set the correct headers (from php.net)
// To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
your $message may now contain HTML. For complex html/emails, it's advisable to look at some packages such as the PEAR Mailer class for instance.