PHP Web Host - Quality Web Hosting For All PHP Applications Free RavenNuke(tm) Add Ons
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
disgruntledtech
New Member
New Member


Joined: Jan 24, 2004
Posts: 1

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

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 to the forums!



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 Back to top

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

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest © 2002-2011 by Raven

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is © copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::
:: fisubice Theme Modified by the RavenNuke™ Team ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum