Mail server problem [message #2515] |
Fri, 10 May 2002 17:06 |
sherka
Messages: 9 Registered: May 2002
Karma: 0
|
Junior Member |
|
|
Hi,
I have installed the forum and most things work okay but I am having problems with email.php and also the registration email. It reports;
Warning: Server Error in D:\nightclubforum.co.uk\data\include\email.inc on line 142
Warning: Cannot add header information - headers already sent by (output started at D:\nightclubforum.co.uk\data\include\email.inc:142) in D:\nightclubforum.co.uk\data\include\widgets.inc on line 159
I have looked extensively through your forum but can't find much info. I have tried the tests that you suggest to others and they all work okay - basically you can mail okay using mail() with PHP.
Any ideas? I thought you may have already sorted this for others so may have a fix to hand!
Thanks in advance, Sherka
The url is www.nightclubforum.co.uk by the way...
[Updated on: Fri, 10 May 2002 17:11] Report message to a moderator
|
|
|
Re: Mail server problem [message #2518 is a reply to message #2515] |
Fri, 10 May 2002 17:16 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Does this error occur on email.php form or does it occur anytime FUDforum tries to send an email?
FUDforum Core Developer
|
|
|
Re: Mail server problem [message #2519 is a reply to message #2515] |
Fri, 10 May 2002 17:23 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Also, could you run 1 more test for me please.
mail("Ilia <ilia(at)prohost(dot)org>", "Test Email", "Test Subject", "From: your_email\r\nReply-To: your_email\r\nErrors-To: ilia(at)prohost(dot)org");
See if this causes the error you are seeing.
FUDforum Core Developer
|
|
|
|
|
|
Re: Mail server problem [message #2524 is a reply to message #2523] |
Fri, 10 May 2002 17:47 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Okie... try the attached email.php and let me know if email.php form works correctly or not.
If it does work without giving errors I will apply the fixes made to the rest of the email code.
FUDforum Core Developer
|
|
|
|
Re: Mail server problem [message #2526 is a reply to message #2525] |
Fri, 10 May 2002 17:57 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Could you please join FUDforum's channel on irc ( irc.openprojects.net #fudforum) it would make it easier to analyze & solve the problem if we can converse real time.
If not let me know, I'll send you a debug script via email.
FUDforum Core Developer
|
|
|
|
|
Re: Mail server problem [message #2534 is a reply to message #2531] |
Fri, 10 May 2002 19:15 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
I found the bug, it appears to have been a problem with your mail server since it didn't like the fact that PHP set sendmail_from field. Even though PHP docs explicitly say that option is for Win32!
Anyhow, I was able to fix the problem and you now have a working code on your server.
For everyone else who has this problem, the fix is in the CVS. The 2 affected files are: core.inc and email.inc
FUDforum Core Developer
|
|
|
|