Hi,
I run the following code error will occure. Plz tell that what mistake i have done
[php]<?php
// multiple recipients
$to = 'sravani_409@ya hoo.com' . ', '; // note the comma
$to .= 'jyothsna11_123 @yahoo.com';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthd ay 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 <vani@eminosoft .com>, Kelly <sravanik@emino soft.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <jyothsna11.123 @gmail.com>' . "\r\n";
$headers .= 'Cc: soundarya_435@y ahoo.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@e xample.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>[/php]
error :Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mai l1.php on line 43
I run the following code error will occure. Plz tell that what mistake i have done
[php]<?php
// multiple recipients
$to = 'sravani_409@ya hoo.com' . ', '; // note the comma
$to .= 'jyothsna11_123 @yahoo.com';
// subject
$subject = 'Birthday Reminders for August';
// message
$message = '
<html>
<head>
<title>Birthd ay 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 <vani@eminosoft .com>, Kelly <sravanik@emino soft.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <jyothsna11.123 @gmail.com>' . "\r\n";
$headers .= 'Cc: soundarya_435@y ahoo.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@e xample.com' . "\r\n";
// Mail it
mail($to, $subject, $message, $headers);
?>[/php]
error :Warning: mail() [function.mail]: Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in D:\wamp\www\mai l1.php on line 43
Comment