I recieve this error wehen sending messages using my mail.php form, but I don't know why they occur?
Warning: Cannot add header information - headers already sent by (output started at /home/*/public_html/proba/mail.php:1) in /home/****/public_html/proba/mail.php on line 10
THIS IS MY mail.php
$headers .= "From: $email \n";
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";
$recipient = "email@example.com";
$subject = "Pictures ";
$msg = wordwrap( $list, $probni, 1024 );
mail($recipient, $subject, stripslashes($msg), $headers);
Last edited by Kor; 04-03-2008 at 03:31 AM.
You can't use header() if you have already sent HTML to the client, which you have in your <title> tag. Remove all HTML before the start of the PHP script, and it should work.
Could you please delete
as it reveals personal info to search engines!!! I tried contacting admins but have no right for PMs yet..
Last edited by Kor; 04-03-2008 at 03:32 AM.
also, this topic here contains URLs that contain my personal info, so please delete them as well..
Sorry for double posting, but Edit didn't work..
Originally Posted by dovlasr
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)