<?php
<?php
// multiple recipients
$to = 'dvsaikumar07@outlook.com' . ', '; // note the comma
$to .= 'dvsaikumar07@outlook.com';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthday Reminders for August</title>
</head>
<body>
<p>Here are the birthdays upcoming in August!</p>
<table>
<tr>
<th>Person</th><th>Day</th><th>Month</th><th>Year</th>
</tr>
<tr>
<td>Joe</td><td>3rd</td><td>August</td><td>1970</td>
</tr>
<tr>
<td>Sally</td><td>17th</td><td>August</td><td>1973</td>
</tr>
</table>
</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 <dvsaikumar07@outlook.com>, Kelly <dvsaikumar07@outlook.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <dvsaikumar07@outlook.com>' . "\r\n";
$headers .= 'Cc: dvsaikumar07@outlook.com' . "\r\n";
$headers .= 'Bcc: dvsaikumar07@outlook.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>
- Output for 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected '<', expecting end of file in /in/tvuD7 on line 3
Process exited with code 255. - Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17
- Parse error: syntax error, unexpected '<' in /in/tvuD7 on line 3
Process exited with code 255.
preferences:
167.44 ms | 1395 KiB | 28 Q