FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Built in E-Mail
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
icon5.gif  Built in E-Mail [message #2216] Mon, 06 May 2002 10:08 Go to next message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
Question Hi i have a E-mail problem, the Email sent by registration works fine, but when the client sends a email using the built in feature they get this:

"Warning: Server Error in c:\inetpub\messages\include\email.inc on line 142

Warning: Cannot add header information - headers already sent by (output started at c:\inetpub\messages\include\email.inc:142) in c:\inetpub\messages\include\widgets.inc on line 159"


If u can help me please do

[Updated on: Mon, 06 May 2002 10:12]

Report message to a moderator

Re: Built in E-Mail [message #2230 is a reply to message #2216] Mon, 06 May 2002 15:53 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
The error is actually a PHP error.

The PHP is complaining about your mail server, hence the "Server Error" warning message. I am rather surprised that you get this error if registration emails work.

Try the following test code and see if you get the same error:

<?php
mail("DESTINATION_EMAIL_ADDRESS", "test email", "testing mail system",
"From: DESTINATION_EMAIL_ADDRESS\r\nReply-To: DESTINATION_EMAIL_ADDRESS\r\nBcc: ANOTHER_DESTINATION_EMAIL_ADDRESS");
?>


FUDforum Core Developer
Re: Built in E-Mail [message #2258 is a reply to message #2230] Mon, 06 May 2002 21:51 Go to previous messageGo to next message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
I used the script u sent me and it worked fine!

What do i do now?
Re: Built in E-Mail [message #2261 is a reply to message #2258] Mon, 06 May 2002 22:45 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Try the FUDforum's email form see if you get the same error as before. Also, if you could show me your phpinfo() output it'be MOST useful.

FUDforum Core Developer
Re: Built in E-Mail [message #2311 is a reply to message #2261] Tue, 07 May 2002 16:08 Go to previous messageGo to next message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
All the Mail features work apart from the /email.php script. I dont know what phpinfo() output is?
Re: Built in E-Mail [message #2319 is a reply to message #2311] Tue, 07 May 2002 17:31 Go to previous messageGo to next message
Olliver   Germany
Messages: 443
Registered: March 2002
Karma: 0
Senior Member
------------cut-here---------
<?php
phpinfo ();
?>
------------cut-here---------

Save this as phpinfo.php or any other name u prefer to use. Upload it to ur server and call the file. Now it should show u some output.
HTH
bye Ken

[Updated on: Tue, 07 May 2002 17:31]

Report message to a moderator

Re: Built in E-Mail [message #2330 is a reply to message #2319] Tue, 07 May 2002 20:52 Go to previous messageGo to next message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
OK this is what PHPTEST.php came up with:

PHP Version 4.2.0

System Windows NT 5.0 build 2195
Build Date Apr 20 2002 18:36:03
Server API CGI
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINNT\php.ini
Debug Build no
Thread Safety enabled

This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.2.0, Copyright (c) 1998-2002 Zend Technologies



--------------------------------------------------------------------------- -----

PHP 4 Credits

--------------------------------------------------------------------------- -----

Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference
On On
allow_url_fopen
1 1
always_populate_raw_post_data
0 0
arg_separator.input
& &
arg_separator.output
& &
asp_tags
Off Off
auto_append_file
no value no value
auto_prepend_file
no value no value
browscap
no value no value
default_charset
no value no value
default_mimetype
text/html text/html
define_syslog_variables
Off Off
disable_functions
no value no value
display_errors
On On
display_startup_errors
Off Off
doc_root
no value no value
enable_dl
On On
error_append_string
no value no value
error_log
no value no value
error_prepend_string
no value no value
error_reporting
2047 2047
expose_php
On On
extension_dir
./ ./
file_uploads
1 1
gpc_order
GPC GPC
highlight.bg
#FFFFFF #FFFFFF
highlight.comment
#FF9900 #FF9900
highlight.default
#0000CC #0000CC
highlight.html
#000000 #000000
highlight.keyword
#006600 #006600
highlight.string
#CC0000 #CC0000
html_errors
On On
ignore_user_abort
Off Off
implicit_flush
Off Off
include_path
.;c:\php4\pear .;c:\php4\pear
log_errors
Off Off
magic_quotes_gpc
On On
magic_quotes_runtime
Off Off
magic_quotes_sybase
Off Off
max_execution_time
30 30
open_basedir
no value no value
output_buffering
no value no value
output_handler
no value no value
post_max_size
8M 8M
precision
12 12
register_argc_argv
On On
register_globals
Off Off
safe_mode
Off Off
safe_mode_exec_dir
no value no value
safe_mode_gid
Off Off
safe_mode_include_dir
no value no value
sendmail_from
Web_forum(at)blueyonder(dot)co(dot)ukWeb_forum(at)blueyonder(dot)co(dot)uk
sendmail_path
no value no value
short_open_tag
On On
SMTP
smtp.blueyonder.co.uk smtp.blueyonder.co.uk
sql.safe_mode
Off Off
track_errors
Off Off
unserialize_callback_func
no value no value
upload_max_filesize
2M 2M
upload_tmp_dir
C:\PHP\uploadtemp C:\PHP\uploadtemp
user_dir
no value no value
variables_order
EGPCS EGPCS
xmlrpc_error_number
0 0
xmlrpc_errors
Off Off
y2k_compliance
Off Off


standard
Regex Library Bundled library enabled
Dynamic Library Support enabled
Internal Sendmail Support for Windows enabled

Directive Local Value Master Value
assert.active
1 1
assert.bail
0 0
assert.callback
no value no value
assert.quiet_eval
0 0
assert.warning
1 1
safe_mode_allowed_env_vars
PHP_ PHP_
safe_mode_protected_env_vars
LD_LIBRARY_PATH LD_LIBRARY_PATH
url_rewriter.tags
a=href,area=href,frame=src,input=src,form=fakeentry a=href,area=href,frame=src,input=src,form=fakeentry


bcmath
BCMath support enabled


calendar
Calendar support enabled


com
Directive Local Value Master Value
com.allow_dcom
Off Off
com.autoregister_casesensitive
On On
com.autoregister_typelib
Off Off
com.autoregister_verbose
Off Off
com.typelib_file
no value no value


ftp
FTP support enabled


mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 3.23.39

Directive Local Value Master Value
mysql.allow_persistent
On On
mysql.default_host
no value no value
mysql.default_password
no value no value
mysql.default_port
no value no value
mysql.default_socket
no value no value
mysql.default_user
no value no value
mysql.max_links
Unlimited Unlimited
mysql.max_persistent
Unlimited Unlimited


odbc
ODBC Support enabled
Active Persistent Links 0
Active Links 0
ODBC library Win32

Directive Local Value Master Value
odbc.allow_persistent
On On
odbc.check_persistent
On On
odbc.default_db
no value no value
odbc.default_pw
no value no value
odbc.default_user
no value no value
odbc.defaultbinmode
return as is return as is
odbc.defaultlrl
return up to 4096 bytes return up to 4096 bytes
odbc.max_links
Unlimited Unlimited
odbc.max_persistent
Unlimited Unlimited


pcre
PCRE (Perl Compatible Regular Expressions) Support enabled
PCRE Library Version 3.4 22-Aug-2000


session
Session Support enabled

Directive Local Value Master Value
session.auto_start
Off Off
session.cache_expire
180 180
session.cache_limiter
nocache nocache
session.cookie_domain
no value no value
session.cookie_lifetime
0 0
session.cookie_path
/ /
session.cookie_secure
Off Off
session.entropy_file
no value no value
session.entropy_length
0 0
session.gc_maxlifetime
1440 1440
session.gc_probability
1 1
session.name
PHPSESSID PHPSESSID
session.referer_check
no value no value
session.save_handler
files files
session.save_path
C:\PHP\sessiondata C:\PHP\sessiondata
session.serialize_handler
php php
session.use_cookies
On On
session.use_trans_sid
1 1


xml
XML Support active
XML Namespace Support active
EXPAT Version 1.95.2


wddx
WDDX Support enabled


Additional Modules


Environment
Variable Value
ALLUSERSPROFILE C:\Documents and Settings\All Users
CommonProgramFiles C:\Program Files\Common Files
COMPUTERNAME SERVER
ComSpec C:\WINNT\system32\cmd.exe
CONTENT_LENGTH 0
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTP_ACCEPT */*
HTTP_ACCEPT_LANGUAGE en-gb
HTTP_CONNECTION Keep-Alive
HTTP_HOST 62.30.129.124
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 6.0; Windows 9Cool
HTTP_COOKIE fud_session_1020714860=1e9c4e0ef4572913f6c9ec9af32fe676; fud_session_1020638661=e37c56183198e9d77ad87ab72b45754f; frm_referer_id=1; fud_session_1020685780=09e2ae92c4229f777299933be2b560b3; fud_session_1020694264=1a069868a8aee2b9192d878c0122577b; fud_session_1020694430=c6f63b1f826f472efe096dc1e490c734
HTTP_ACCEPT_ENCODING gzip, deflate
INSTANCE_ID 1
LOCAL_ADDR 62.30.129.124
NUMBER_OF_PROCESSORS 1
Os2LibPath C:\WINNT\system32\os2\dll;
OS Windows_NT
Path C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem
PATHEXT .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PATH_INFO /forum/phptest.php
PATH_TRANSLATED c:\inetpub\wwwroot\forum\phptest.php
PROCESSOR_ARCHITECTURE x86
PROCESSOR_IDENTIFIER x86 Family 6 Model 6 Stepping 0, GenuineIntel
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 0600
ProgramFiles C:\Program Files
REMOTE_ADDR 192.168.1.10
REMOTE_HOST 192.168.1.10
REQUEST_METHOD GET
SCRIPT_NAME /forum/phptest.php
SERVER_NAME 62.30.129.124
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.1
SERVER_SOFTWARE Microsoft-IIS/5.0
SystemDrive C:
SystemRoot C:\WINNT
TEMP C:\WINNT\TEMP
TMP C:\WINNT\TEMP
USERPROFILE C:\Documents and Settings\NetShowServices
windir C:\WINNT


PHP Variables
Variable Value
_COOKIE["fud_session_1020714860"] 1e9c4e0ef4572913f6c9ec9af32fe676
_COOKIE["fud_session_1020638661"] e37c56183198e9d77ad87ab72b45754f
_COOKIE["frm_referer_id"] 1
_COOKIE["fud_session_1020685780"] 09e2ae92c4229f777299933be2b560b3
_COOKIE["fud_session_1020694264"] 1a069868a8aee2b9192d878c0122577b
_COOKIE["fud_session_1020694430"] c6f63b1f826f472efe096dc1e490c734
_SERVER["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
_SERVER["CommonProgramFiles"] C:\\Program Files\\Common Files
_SERVER["COMPUTERNAME"] SERVER
_SERVER["ComSpec"] C:\\WINNT\\system32\\cmd.exe
_SERVER["CONTENT_LENGTH"] 0
_SERVER["GATEWAY_INTERFACE"] CGI/1.1
_SERVER["HTTPS"] off
_SERVER["HTTP_ACCEPT"] */*
_SERVER["HTTP_ACCEPT_LANGUAGE"] en-gb
_SERVER["HTTP_CONNECTION"] Keep-Alive
_SERVER["HTTP_HOST"] 62.30.129.124
_SERVER["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows 9Cool
_SERVER["HTTP_COOKIE"] fud_session_1020714860=1e9c4e0ef4572913f6c9ec9af32fe676; fud_session_1020638661=e37c56183198e9d77ad87ab72b45754f; frm_referer_id=1; fud_session_1020685780=09e2ae92c4229f777299933be2b560b3; fud_session_1020694264=1a069868a8aee2b9192d878c0122577b; fud_session_1020694430=c6f63b1f826f472efe096dc1e490c734
_SERVER["HTTP_ACCEPT_ENCODING"] gzip, deflate
_SERVER["INSTANCE_ID"] 1
_SERVER["LOCAL_ADDR"] 62.30.129.124
_SERVER["NUMBER_OF_PROCESSORS"] 1
_SERVER["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
_SERVER["OS"] Windows_NT
_SERVER["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
_SERVER["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_SERVER["PATH_INFO"] /forum/phptest.php
_SERVER["PATH_TRANSLATED"] c:\\inetpub\\wwwroot\\forum\\phptest.php
_SERVER["PROCESSOR_ARCHITECTURE"] x86
_SERVER["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 6 Stepping 0, GenuineIntel
_SERVER["PROCESSOR_LEVEL"] 6
_SERVER["PROCESSOR_REVISION"] 0600
_SERVER["ProgramFiles"] C:\\Program Files
_SERVER["REMOTE_ADDR"] 192.168.1.10
_SERVER["REMOTE_HOST"] 192.168.1.10
_SERVER["REQUEST_METHOD"] GET
_SERVER["SCRIPT_NAME"] /forum/phptest.php
_SERVER["SERVER_NAME"] 62.30.129.124
_SERVER["SERVER_PORT"] 80
_SERVER["SERVER_PORT_SECURE"] 0
_SERVER["SERVER_PROTOCOL"] HTTP/1.1
_SERVER["SERVER_SOFTWARE"] Microsoft-IIS/5.0
_SERVER["SystemDrive"] C:
_SERVER["SystemRoot"] C:\\WINNT
_SERVER["TEMP"] C:\\WINNT\\TEMP
_SERVER["TMP"] C:\\WINNT\\TEMP
_SERVER["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
_SERVER["windir"] C:\\WINNT
_SERVER["PHP_SELF"] /forum/phptest.php
_SERVER["argv"] Array
(
)


_SERVER["argc"] 0
_ENV["ALLUSERSPROFILE"] C:\\Documents and Settings\\All Users
_ENV["CommonProgramFiles"] C:\\Program Files\\Common Files
_ENV["COMPUTERNAME"] SERVER
_ENV["ComSpec"] C:\\WINNT\\system32\\cmd.exe
_ENV["CONTENT_LENGTH"] 0
_ENV["GATEWAY_INTERFACE"] CGI/1.1
_ENV["HTTPS"] off
_ENV["HTTP_ACCEPT"] */*
_ENV["HTTP_ACCEPT_LANGUAGE"] en-gb
_ENV["HTTP_CONNECTION"] Keep-Alive
_ENV["HTTP_HOST"] 62.30.129.124
_ENV["HTTP_USER_AGENT"] Mozilla/4.0 (compatible; MSIE 6.0; Windows 9Cool
_ENV["HTTP_COOKIE"] fud_session_1020714860=1e9c4e0ef4572913f6c9ec9af32fe676; fud_session_1020638661=e37c56183198e9d77ad87ab72b45754f; frm_referer_id=1; fud_session_1020685780=09e2ae92c4229f777299933be2b560b3; fud_session_1020694264=1a069868a8aee2b9192d878c0122577b; fud_session_1020694430=c6f63b1f826f472efe096dc1e490c734
_ENV["HTTP_ACCEPT_ENCODING"] gzip, deflate
_ENV["INSTANCE_ID"] 1
_ENV["LOCAL_ADDR"] 62.30.129.124
_ENV["NUMBER_OF_PROCESSORS"] 1
_ENV["Os2LibPath"] C:\\WINNT\\system32\\os2\\dll;
_ENV["OS"] Windows_NT
_ENV["Path"] C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem
_ENV["PATHEXT"] .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
_ENV["PATH_INFO"] /forum/phptest.php
_ENV["PATH_TRANSLATED"] c:\\inetpub\\wwwroot\\forum\\phptest.php
_ENV["PROCESSOR_ARCHITECTURE"] x86
_ENV["PROCESSOR_IDENTIFIER"] x86 Family 6 Model 6 Stepping 0, GenuineIntel
_ENV["PROCESSOR_LEVEL"] 6
_ENV["PROCESSOR_REVISION"] 0600
_ENV["ProgramFiles"] C:\\Program Files
_ENV["REMOTE_ADDR"] 192.168.1.10
_ENV["REMOTE_HOST"] 192.168.1.10
_ENV["REQUEST_METHOD"] GET
_ENV["SCRIPT_NAME"] /forum/phptest.php
_ENV["SERVER_NAME"] 62.30.129.124
_ENV["SERVER_PORT"] 80
_ENV["SERVER_PORT_SECURE"] 0
_ENV["SERVER_PROTOCOL"] HTTP/1.1
_ENV["SERVER_SOFTWARE"] Microsoft-IIS/5.0
_ENV["SystemDrive"] C:
_ENV["SystemRoot"] C:\\WINNT
_ENV["TEMP"] C:\\WINNT\\TEMP
_ENV["TMP"] C:\\WINNT\\TEMP
_ENV["USERPROFILE"] C:\\Documents and Settings\\NetShowServices
_ENV["windir"] C:\\WINNT


PHP License
This program is free software; you can redistribute it and/or modify it under the terms of the PHP License as published by the PHP Group and included in the distribution in the file: LICENSE

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

If you did not receive a copy of the PHP license, or have any questions about PHP licensing, please contact license(at)php(dot)net.


Re: Built in E-Mail [message #2332 is a reply to message #2330] Tue, 07 May 2002 21:02 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Peter,

If you don't mind 1 more test. Please try the code below and see it works without giving any errors.


mail("ilia(at)prohost(dot)org", "Email TEST", "Just Testing",
"From: rei(at)prohost(dot)org\r\nErrors-To: rei(at)prohost(dot)org\r\nReply-To: rei(at)prohost(dot)org");


FUDforum Core Developer
Re: Built in E-Mail [message #2333 is a reply to message #2332] Tue, 07 May 2002 21:09 Go to previous messageGo to next message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
Hi again,

The email was sent without any errors reported at 22:07 GMT

Peter
Re: Built in E-Mail [message #2334 is a reply to message #2333] Tue, 07 May 2002 21:30 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Thanks.

I believe I have enough info to figure out this bug. Although I am still waiting for the email that you've sent with the test script.


FUDforum Core Developer
Re: Built in E-Mail [message #2335 is a reply to message #2334] Tue, 07 May 2002 21:32 Go to previous messageGo to next message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
The Email should get there, i ran the same script using my email after and it worked, thanks for all the help Very Happy
Re: Built in E-Mail [message #2357 is a reply to message #2335] Wed, 08 May 2002 04:08 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
got the emails... I think there was some delay with my mail server...

FUDforum Core Developer
Re: Built in E-Mail [message #2535 is a reply to message #2216] Fri, 10 May 2002 19:18 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
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!

For everyone else who has this problem, the fix is in the CVS.
The 2 affected files are: core.inc and email.inc


Just in case you don't have CVS the patched files are attached to this message.
  • Attachment: email.inc
    (Size: 5.22KB, Downloaded 785 times)
  • Attachment: core.inc
    (Size: 3.64KB, Downloaded 665 times)


FUDforum Core Developer
Re: Built in E-Mail [message #2638 is a reply to message #2535] Mon, 13 May 2002 21:11 Go to previous message
Peter Verrill is currently offline  Peter Verrill   United Kingdom
Messages: 23
Registered: May 2002
Karma: 0
Junior Member
Emm... I still got the same error...

Going to try a different SMTP server....

[Updated on: Mon, 13 May 2002 21:12]

Report message to a moderator

  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Text Corruption
Next Topic: Wrong paths in FUD 1.2.8
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:09:54 GMT 2024

Total time taken to generate the page: 0.03371 seconds