You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 70 guest(s) and 1 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Followed "switch PHP-Nuke to SMTP" post, but I hav [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
brainchasm
Guest






PostPosted: Wed Jan 28, 2004 7:40 pm Reply with quoteBack to top

I followed the HOWTO at http://www.nukecops.com/postlite19909-change+smtp.html to get my machine to use my SMTP host instead of whatever it uses now.

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
Find all posts by Anonymous
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 991

Location: Tulsa, OK

PostPosted: Wed Jan 28, 2004 8:41 pm Reply with quoteBack to top

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");
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
Guest







PostPosted: Wed Jan 28, 2004 9:53 pm Reply with quoteBack to top

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
Find all posts by Anonymous
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 991

Location: Tulsa, OK

PostPosted: Thu Jan 29, 2004 1:47 am Reply with quoteBack to top

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
Code:
message_die(GENERAL_ERROR, "Ran into problems sending Mail. Response: $server_response", "", $line, __FILE__);

to
Code:
//message_die(GENERAL_ERROR, "Ran into problems sending Mail. Response: $server_response", "", $line, __FILE__);
echo $server_response


then well know what your server returned
btw, take out that include("includes/functions.php"); part
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
brainchasm
Guest






PostPosted: Thu Jan 29, 2004 10:20 am Reply with quoteBack to top

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
Find all posts by Anonymous
brainchasm
Guest






PostPosted: Thu Jan 29, 2004 10:28 am Reply with quoteBack to top

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
Find all posts by Anonymous
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 991

Location: Tulsa, OK

PostPosted: Thu Jan 29, 2004 10:38 am Reply with quoteBack to top

works fine for me with just the account nem -prolly server specific so try it both ways if youre having problems
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
brainchasm
Guest






PostPosted: Thu Jan 29, 2004 10:48 am Reply with quoteBack to top

Damn, I thought I was done Confused

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
Find all posts by Anonymous
disgruntledtech
Site Admin
Site Admin


Joined: Apr 14, 2003
Posts: 991

Location: Tulsa, OK

PostPosted: Thu Jan 29, 2004 3:07 pm Reply with quoteBack to top

i'll look at that later -i bet newsletter calls email more than once -i'll have to add a check for that
Find all posts by disgruntledtechView user's profileSend private messageSend e-mailVisit poster's website
brainchasm
Guest






PostPosted: Sat Jan 31, 2004 8:53 pm Reply with quoteBack to top

Just a bump so I don't fall between the cracks.


BC
Find all posts by Anonymous
Eyecu
Nuke Cadet
Nuke Cadet


Joined: Feb 07, 2004
Posts: 3


PostPosted: Sun Feb 08, 2004 11:38 pm Reply with quoteBack to top

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.

Thanks
Wes Bullard
Find all posts by EyecuView user's profileSend private message
Guest
Guest






PostPosted: Sat Jun 11, 2005 5:17 pm Reply with quoteBack to top

/etc/mail/sendmail.cf

added line:

DS«your smtp server»

and it worked great!
Find all posts by Anonymous
Display posts from previous:      
This forum is locked: you cannot post, reply to, or edit topics.  This topic is locked: you cannot edit posts or make replies.printer-friendly view
View previous topic Log in to check your private messages View next topic
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



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.600 Seconds - 360 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::