Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
disgruntledtech
New Member
New Member


Joined: Jan 24, 2004
Posts: 1

PostPosted: Sat Jan 24, 2004 1:39 am Reply with quote

in mainfile.php before
Code:
function get_lang($module) {

add this:
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);
}


'board_email' in this example will show up as Only registered users can see links on this board! Get registered or login!


now to use this with any module inside nuke that uses the mail() command, can send mail through the specified server with a minor code change

open the following files and on or near the lines mentioned you'll see

Code:
mail(


change it to:
Code:
email(


/banners.php - lines 82 & 328
/modules/Feedback/index.php - line 93
/modules/Journal/friend.php - line 48
/modules/News/friend.php - line 77
/modules/Recommend_Us/index.php - line 54
/modules/Submit_News/index.php - line 252
/modules/Recommend_Us/index.php - line 54
/modules/Your_Account/index.php - lines 146 & 653 & 683
/admin/modules/links.php - line 1125
/admin/modules/newsletter.php - lines 123 & 150

that should do it.

tech note: i know board_config is setup in forum admin, but i decided to use 1 less sql query and hard code it.
 
View user's profile Send private message
XtraX
Hangin' Around


Joined: Nov 03, 2004
Posts: 43

PostPosted: Fri Nov 11, 2005 5:53 pm Reply with quote

has this been tested as i tryed this on a test site but it didnt work!

xtrax
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot 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
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©