I want to embed links and fields into php generated emails.
This is the email_message field.

Welcome to the Neighborhood 13 Wine Tasters Group. In order to make sure we have your correct email address we need to have you return this email by pressing the Return button on your email program and answering a couple of questions.

1. How would you like your emails addressed?

2. Are your address and phone number correct?

If not please correct.<a href="mailto:$email_reference">Email Me</a>

Name: $email_name

Address: $email_address

Phone number: $email_phone

The $fields come from mysql queries and I suspect they need to be escaped in some fashion.

Just copied from php.net

<?php

$to  = 'daniweb@example.com';

// subject
$subject = 'Neighborhood 13';

// message
$message = '
<!DOCTYPE>
<html>
<head>
<title>Mail</title>
</head>
<body>
<p>Welcome to the Neighborhood 13 Wine Tasters Group. In order to make sure we have your correct email address we need to have you return this email by pressing the Return button on your email program and answering a couple of questions.</p>
<p>1. How would you like your emails addressed?</p>
<p>2. Are your address and phone number correct?</p>
<p>If not please correct.<a href="mailto:'.$email_reference.'">Email Me</a></p>
<p>Name: '.$email_name.'</p>
<p>Address: '.$email_address.'</p>
<p>Phone number: '.$email_phone.'<br/>
</p>
</body>
</html>
';

// 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";

// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Neighborhood 13 <birthday@example.com>' . "\r\n";
$headers .= 'Cc: test@example.com' . "\r\n";
$headers .= 'Bcc: test2@example.com' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);
?>