Hi,
<?php
/* recipients */
$to = "mail1@example.com" . ", " ; // note the comma
$to .= "mail2@example.com" . ", " ; // note the .=
$to .= "mail3@example.com" . ", " ; // etc...
/* subject (edit to your needs)*/
$subject = "Link";
$link = "http://www.example.com/yourlink.php";
/* message (edit to your needs)*/
$message = '
<html>
<head>
<title>Link to the selected photo</title>
</head>
<body>
<p>Hello, here is the link!</p>
<table>
<tr>
<td><a href="<? echo $link; ?>">Click here!</a></td>
</tr>
</table>
</body>
</html>
';
/* To send HTML mail, you can set the Content-type header. */
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
/* additional headers */
$headers .= "To: Mail1 <mail1@example.com>, Mail2 <mail2@example.com, Mail3 <mail3@example.com>\r\n";
$headers .= "From: Me <you@example.com>\r\n";
$headers .= "Cc: you@example.com\r\n";
$headers .= "Bcc: you@example.com\r\n";
/* and now mail it */
mail($to, $subject, $message, $headers);
?>
Good luck,
Gh0sT