Re: no one can find solution to my problem??

From: Date: Tue, 08 Jan 2002 09:41:05 +0000
Subject: Re: no one can find solution to my problem??
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-79769@lists.php.net to get a copy of this message
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 <balaji.ankem@wipro.com>" ; > > /* 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 <balaji.ankem@wipro.com>\r\n"; > > $headers .= "Cc: balaji.ankem@wipro.com\r\n"; > $headers .= "Bcc: birthdaycheck@example.com\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: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#79769) next »