Re: [Webcollab-users] Email PHP not SMTP (replaced patch email.php)
Brought to you by:
andrewsimpson
From: Andrew S. <and...@pa...> - 2007-02-05 19:22:58
|
On Mon, 05 Feb 2007 13:52:34 -0500 John Eckert <je...@x2...> wrote: > After replacing the email.php file to enable mailing without SMTP, I get > email function but I also get the following error message: > > Warning: Cannot modify header information - headers already sent by (output > started at > /mnt/w0202/d17/s23/b02a1540/www/mysite.com/webcollab-2.11/webcollab-2.11/inc > ludes/email.php:105) in > /mnt/w0202/d17/s23/b02a1540/www/mysite.com/webcollab-2.11/webcollab-2.11/fil > es/file_submit.php on line 319 > > Correct me if I'm wrong, but I understand that you have replaced the email.php file with another custom written file. I ask this question because I would like to know if it a widespread bug, or just a 'one off' problem. Assuming it's a custom written file: Look for whitespace or characters after the '?>' at the end of the email.php file. This should be line 105 from the error message. WebCollab sends it's own HTTP headers, rather than relying in the default HTTP headers that PHP sends. However it is important that _nothing_ is sent to the web client before the HTTP headers are sent. Whitespace innocently left at the end of files is a common culprit. > > Emails addresses are random according to the server for example: > > From: anonymous@m1. <mailto:ano...@m1...> myhost.com > Have you looked at admin_config.php? If this is a custom file for email, I can't really help. Andrew |