Well it looks to me that your headers variable is an array and that isnt
really going to work with the mail function unless you arraywalk it.

Hopefully that helps, since it's the only thing I can think of


> <?php
> 
> /* recipients */
> $to  = "Mary <[EMAIL PROTECTED]>" ;
> 
> /* subject */
> $subject = "Birthday Reminder";
> 
> /* 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>
> <td>Sally</td><td>17th</td><td>August</td><td>1973</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 .= "From: Balaji Ankem <[EMAIL PROTECTED]>\r\n";
> 
> $headers .= "Cc: [EMAIL PROTECTED]\r\n";
> $headers .= "Bcc: [EMAIL PROTECTED]\r\n";
> $headers['User']='bankem';
> $headers['Password']='narayana';
> 
> 
> /* and now mail it */
> mail($to, $subject, $message, $headers);
> 
> ?>
> 
> 
> Warning: Server Error in c:\www/email1.php on line 45
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to