Despite a few errors in the HOWTO, I managed through, but now when registering a new user, when I click the Finish button, I get:
Code:
Fatal error: Call to undefined function: message_die() in /var/www/html/includes/smtp.php on line 78
Can someone tell me what's going on?
I'm using Mandrake Linux 9.2, Apache 2.0.47, mySQL 4.0.15, and PHP 4.3.2
BC
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
Posted:
Wed Jan 28, 2004 8:41 pm
you've prolly entered invalid server info or the server is rejecting the message
to see the error try adding
Code:
include("includes/functions.php");
right before
Code:
include("includes/smtp.php");
Guest
Posted:
Wed Jan 28, 2004 9:53 pm
Now it says:
Code:
Fatal error: Call to undefined function: session_pagestart() in /var/www/html/includes/functions.php on line 619
I've verified that the smtp server I'm using is good (I use it successfully for my normal e-mail client). I've also double checked my work as far as the HOWTO.
Any ideas?
BC
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
Posted:
Thu Jan 29, 2004 1:47 am
well the just cause the server works for you, it may not work for your server -the problem here is we still dont know the real error since smtp.php uses phpbbs error reporting system and we cant see the error without initialing half of phpbb(easier said than done)
it'd be easier to just edit smtp.php to get the error out in the open
then well know what your server returned
btw, take out that include("includes/functions.php"); part
brainchasm Guest
Posted:
Thu Jan 29, 2004 10:20 am
Ok!
Now we're getting somewhere:
Code:
553 5.5.4 ... Domain name required for sender address webmaster 503 5.0.0 Need MAIL before RCPT 503 5.0.0 Need MAIL command 500 5.5.1 Command unrecognized: "Subject: New User Account Activation"
That's definitely more informative!
BC
brainchasm Guest
Posted:
Thu Jan 29, 2004 10:28 am
FIXED!
In the HOWTO at:
Code:
/smtp email hack by Disgruntledtech
function email($user_email, $subject, $message, $headers){
global $board_config;
$board_config['smtp_host'] = "smtp.server.com";
$board_config['smtp_username'] = "username";
$board_config['smtp_password'] = "password";
$board_config['board_email'] = "whatever";
include("includes/smtp.php");
smtpmail($user_email, $subject, $message, $headers);
}
I actually need to put:
Code:
/smtp email hack by Disgruntledtech
function email($user_email, $subject, $message, $headers){
global $board_config;
$board_config['smtp_host'] = "smtp.server.com";
$board_config['smtp_username'] = "username";
$board_config['smtp_password'] = "password";
$board_config['board_email'] = "whatever@mydomain.com";
include("includes/smtp.php");
smtpmail($user_email, $subject, $message, $headers);
}
And I verified that I got e-mail at a hotmail address, so everything is great.
Some fixes/clarifications might be in order in the HOWTO.
I would recommend:
delete second instance of "/modules/Recommend_Us/index.php - line 54"
replace "/admin/modules/links.php - line 1125" with line 1090 instead.
mention that board_email must be set to a complete e-mail address.
I think that was all that I found.
Thanks again for your help disgruntledtech!
BC
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
Posted:
Thu Jan 29, 2004 10:38 am
works fine for me with just the account nem -prolly server specific so try it both ways if youre having problems
brainchasm Guest
Posted:
Thu Jan 29, 2004 10:48 am
Damn, I thought I was done
Registration e-mails are working fine, however, when attempting to send a newsletter:
Code:
Fatal error: Cannot redeclare server_parse() (previously declared in /var/www/html/includes/smtp.php:66) in /var/www/html/includes/smtp.php on line 66
I really gotta learn PHP so I can figure out what that means...
Any ideas?
BC
disgruntledtech Site Admin
Joined: Apr 14, 2003
Posts: 994
Location: Tulsa, OK
Posted:
Thu Jan 29, 2004 3:07 pm
i'll look at that later -i bet newsletter calls email more than once -i'll have to add a check for that
brainchasm Guest
Posted:
Sat Jan 31, 2004 8:53 pm
Just a bump so I don't fall between the cracks.
BC
Eyecu Nuke Cadet
Joined: Feb 07, 2004
Posts: 3
Posted:
Sun Feb 08, 2004 11:38 pm
Hello
Ok i went in and made the changes and stuff to the smtp folder to get what my error is. This is what im getting:
421 child crashed (#4.3.0)
Fatal error: Call to undefined function: message_die() in D:\hshome\****\lilfukker.net\html\includes\smtp.php on line 72
Anyone know what this means... I have no clue lol.
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum