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, 46 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - HOWTO: Send activation email using an outside SMTP server [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Bubba
Nuke Cadet
Nuke Cadet


Joined: Jan 03, 2004
Posts: 8


PostPosted: Mon Dec 06, 2004 9:01 am Reply with quoteBack to top

i myself is getting



Fatal error: Cannot redeclare message_die() (previously declared in c:\program files\easyphp1-7\www\mailhack.php:7) in c:\program files\easyphp1-7\www\includes\functions.php on line 558


has anyone found a fix for this one
Find all posts by BubbaView user's profileSend private message
Bubba
Nuke Cadet
Nuke Cadet


Joined: Jan 03, 2004
Posts: 8


PostPosted: Mon Dec 06, 2004 9:18 am Reply with quoteBack to top

Bubba wrote:
i myself is getting



Fatal error: Cannot redeclare message_die() (previously declared in c:\program files\easyphp1-7\www\mailhack.php:7) in c:\program files\easyphp1-7\www\includes\functions.php on line 558


has anyone found a fix for this one


i have just found te fix for this problem

find this function in \include\functions.php
Code:
function message_die($msg_code, $msg_text = '', $msg_title = '', $err_line = '', $err_file = '', $sql = '')


you need to either take out that function or comment it out down to

Code:
function bblogin($nukeuser, $session_id) {   

which is roughly 200 lines of code so happy fixes
Find all posts by BubbaView user's profileSend private message
Hawkeye_nl
Nuke Cadet
Nuke Cadet


Joined: Feb 14, 2005
Posts: 2


PostPosted: Mon Feb 14, 2005 12:11 pm Reply with quoteBack to top

I have a compaq server running linux redhead 9.0
I have my site bilded in phpnuke 7.6
I have changed what you tell uw before and put in the file "mailhack.php"

After that I have changed the login id and the smtp adres in this file and also in the file "includes.smtp.php"

After doing this It's possible to fill out the form, check if all is like you wishes and send the e-mail for confirmation. I even get the page that says:
Your request for a new account has been processed. You'll receive an email in the next few seconds with a activation link that should be visited in the next 24 hours to be able to activate your account.

But the mail never apears in the inboxes of those who dit fil out the form.
What can be the problem?

Hawkeye
The Macaw Club Holland (http://84.81.13.86 not active yet!)
Find all posts by Hawkeye_nlView user's profileSend private message
Hawkeye_nl
Nuke Cadet
Nuke Cadet


Joined: Feb 14, 2005
Posts: 2


PostPosted: Fri Feb 18, 2005 3:14 am Reply with quoteBack to top

OK, The problem I hat before is solved. The mail function is working for 80 to 90%.
The only problem I''ll seem to have now is when I try to send a newsletter to subscribed users or all members. The first mail get to the adressed but the rest seems not to get the mail at all.
I get the next message:
Cannot redeclare server_parse() (previously declared in ...\includes\smtp.php:66) in ..\includes\smtp.php on line 66

Taking out the mailhack.php dit not solveed this problem and created more problems.

Regards,
Hawkeye_nl
Find all posts by Hawkeye_nlView user's profileSend private message
Godbuster
Nuke Cadet
Nuke Cadet


Joined: Apr 21, 2005
Posts: 4

Location: Georgia

PostPosted: Thu Apr 21, 2005 6:40 pm Reply with quoteBack to top

Um..I saw the problem addressed earlier, but I'm still having a problem. I keep getting this error messege
Code:
Fatal error: Call to undefined function: message_die() in /home/www/phptesterx.coconia.net/includes/smtp.php on line 78

If anyone could help me, I'd really apreciate it. Reply here or hit me up on MSN at godbuster@hotmail.com
Find all posts by GodbusterView user's profileSend private messageVisit poster's websiteYahoo MessengerMSN Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Tue Aug 23, 2005 11:54 pm Reply with quoteBack to top

Thanks god somebody is familiar with this... I am running php nuke 7.7 with nntonuke2.17.. its a fresh install... I wanna know where can I set up the email settings for both the integrated forum and the nuke to use my outside smtp server and how can I change it to port 587 instead of 25?
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 3:09 am Reply with quoteBack to top

the email hack on working on my 7.7 I have a sneakey feeling
my usercp_email.php has something to do with it... does it?



<?php
/***************************************************************************
* usercp_email.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: usercp_email.php,v 1.7.2.13 2003/06/06 18:02:15 acydburn Exp $
*
*
***************************************************************************/
/***************************************************************************
* phpbb2 forums port version 2.0.5 (c) 2003 - Nuke Cops (http://nukecops.com)
*
* Ported by Nuke Cops to phpbb2 standalone 2.0.5 Test
* and debugging completed by the Elite Nukers and site members.
*
* You run this package at your sole risk. Nuke Cops and affiliates cannot
* be held liable if anything goes wrong. You are advised to test this
* package on a development system. Backup everything before implementing
* in a production environment. If something goes wrong, you can always
* backout and restore your backups.
*
* Installing and running this also means you agree to the terms of the AUP
* found at Nuke Cops.
*
* This is version 2.0.5 of the phpbb2 forum port for PHP-Nuke. Work is based
* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was based
* on the phpbb2 standalone version 2.0.3. Our version 2.0.5 from Nuke Cops is
* now reflecting phpbb2 standalone 2.0.5 that fixes some bugs and the
* invalid_session error message.
***************************************************************************/
/***************************************************************************
* This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
* by Tom Nitzschner (tom@toms-home.com)
* http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
*
* As always, make a backup before messing with anything. All code
* release by me is considered sample code only. It may be fully
* functual, but you use it at your own risk, if you break it,
* you get to fix it too. No waranty is given or implied.
*
* Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
* then on my site. All original header code and copyright messages will be maintained
* to give credit where credit is due. If you modify this, the only requirement is
* that you also maintain all original copyright messages. All my work is released
* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
*
***************************************************************************/

/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*
***************************************************************************/

if ( !defined('IN_PHPBB') )
{
die("Hacking attempt");
exit;
}

// Is send through board enabled? No, return to index
if (!$board_config['board_email_form'])
{
redirect(append_sid("index.$phpEx", true));
}

if ( !empty($HTTP_GET_VARS[POST_USERS_URL]) || !empty($HTTP_POST_VARS[POST_USERS_URL]) )
{
$user_id = ( !empty($HTTP_GET_VARS[POST_USERS_URL]) ) ? intval($HTTP_GET_VARS[POST_USERS_URL]) : intval($HTTP_POST_VARS[POST_USERS_URL]);
}
else
{
message_die(GENERAL_MESSAGE, $lang['No_user_specified']);
}

if ( !$userdata['session_logged_in'] )
{
header('Location: ' . append_sid("login.$phpEx?redirect=profile.$phpEx&mode=email&" . POST_USERS_URL . "=$user_id", true));
exit;
}

$sql = "SELECT username, user_email, user_viewemail, user_lang
FROM " . USERS_TABLE . "
WHERE user_id = '$user_id'";
if ( $result = $db->sql_query($sql) )
{
$row = $db->sql_fetchrow($result);

$username = $row['username'];
$user_email = $row['user_email'];
$user_lang = $row['user_lang'];

if ( $row['user_viewemail'] || $userdata['user_level'] == ADMIN )
{
if ( time() - $userdata['user_emailtime'] < $board_config['flood_interval'] )
{
message_die(GENERAL_MESSAGE, $lang['Flood_email_limit']);
}

if ( isset($HTTP_POST_VARS['submit']) )
{
$error = FALSE;

if ( !empty($HTTP_POST_VARS['subject']) )
{
$subject = trim(stripslashes($HTTP_POST_VARS['subject']));
}
else
{
$error = TRUE;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Empty_subject_email'] : $lang['Empty_subject_email'];
}

if ( !empty($HTTP_POST_VARS['message']) )
{
$message = trim(stripslashes($HTTP_POST_VARS['message']));
}
else
{
$error = TRUE;
$error_msg = ( !empty($error_msg) ) ? $error_msg . '<br />' . $lang['Empty_message_email'] : $lang['Empty_message_email'];
}

if ( !$error )
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_emailtime = " . time() . "
WHERE user_id = " . $userdata['user_id'];
if ( $result = $db->sql_query($sql) )
{
include("includes/emailer.php");
$emailer = new emailer($board_config['smtp_delivery']);

$emailer->from($userdata['user_email']);
$emailer->replyto($userdata['user_email']);

$email_headers = 'X-AntiAbuse: Board servername - ' . $server_name . "\n";
$email_headers .= 'X-AntiAbuse: User_id - ' . $userdata['user_id'] . "\n";
$email_headers .= 'X-AntiAbuse: Username - ' . $userdata['username'] . "\n";
$email_headers .= 'X-AntiAbuse: User IP - ' . decode_ip($user_ip) . "\n";

$emailer->use_template('profile_send_email', $user_lang);
$emailer->email_address($user_email);
$emailer->set_subject($subject);
$emailer->extra_headers($email_headers);

$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'BOARD_EMAIL' => $board_config['board_email'],
'FROM_USERNAME' => $userdata['username'],
'TO_USERNAME' => $username,
'MESSAGE' => $message)
);
$emailer->send();
$emailer->reset();

if ( !empty($HTTP_POST_VARS['cc_email']) )
{
$emailer->from($userdata['user_email']);
$emailer->replyto($userdata['user_email']);
$emailer->use_template('profile_send_email');
$emailer->email_address($userdata['user_email']);
$emailer->set_subject($subject);

$emailer->assign_vars(array(
'SITENAME' => $board_config['sitename'],
'BOARD_EMAIL' => $board_config['board_email'],
'FROM_USERNAME' => $userdata['username'],
'TO_USERNAME' => $username,
'MESSAGE' => $message)
);
$emailer->send();
$emailer->reset();
}

$template->assign_vars(array(
'META' => '<meta http-equiv="refresh" content="5;url=' . append_sid("index.$phpEx") . '">')
);

$message = $lang['Email_sent'] . '<br /><br />' . sprintf($lang['Click_return_index'], '<a href="' . append_sid("index.$phpEx") . '">', '</a>');

message_die(GENERAL_MESSAGE, $message);
}
else
{
message_die(GENERAL_ERROR, 'Could not update last email time', '', __LINE__, __FILE__, $sql);
}
}
}

include("includes/page_header.php");

$template->set_filenames(array(
'body' => 'profile_send_email.tpl')
);
make_jumpbox('viewforum.'.$phpEx);

if ( $error )
{
$template->set_filenames(array(
'reg_header' => 'error_body.tpl')
);
$template->assign_vars(array(
'ERROR_MESSAGE' => $error_msg)
);
$template->assign_var_from_handle('ERROR_BOX', 'reg_header');
}

$template->assign_vars(array(
'USERNAME' => $username,

'S_HIDDEN_FIELDS' => '',
'S_POST_ACTION' => append_sid("profile.$phpEx?mode=email&amp;" . POST_USERS_URL . "=$user_id"),

'L_SEND_EMAIL_MSG' => $lang['Send_email_msg'],
'L_RECIPIENT' => $lang['Recipient'],
'L_SUBJECT' => $lang['Subject'],
'L_MESSAGE_BODY' => $lang['Message_body'],
'L_MESSAGE_BODY_DESC' => $lang['Email_message_desc'],
'L_EMPTY_SUBJECT_EMAIL' => $lang['Empty_subject_email'],
'L_EMPTY_MESSAGE_EMAIL' => $lang['Empty_message_email'],
'L_OPTIONS' => $lang['Options'],
'L_CC_EMAIL' => $lang['CC_email'],
'L_SPELLCHECK' => $lang['Spellcheck'],
'L_SEND_EMAIL' => $lang['Send_email'])
);

$template->pparse('body');

include("includes/page_tail.php");
}
else
{
message_die(GENERAL_MESSAGE, $lang['User_prevent_email']);
}
}
else
{
message_die(GENERAL_MESSAGE, $lang['User_not_exist']);
}

?>
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 3:17 am Reply with quoteBack to top

OKAY AFTER APPLYING THE HACK I TRY SEND AN EMAIL TO ANOTHER I GET THE ERROR MESSAGE CANNOT CONNECT TO SMTP SERVER 65

ERROR ON LINE 150

I OPENED MY SMTP.PHP and I COULDNT FIND LINE 150 BECUASE IT DOESNT HAVE THEM LISTED RIGHT>>> THEY ARE LIKE HORIZONTAL TAKE A LOOK< WHICH LINE IS LINE 150?

<?php
/***************************************************************************
* smtp.php
* -------------------
* begin : Wed May 09 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: smtp.php,v 1.16.2.5 2003/06/12 19:20:20 acydburn Exp $
*
***************************************************************************/
/***************************************************************************
* phpbb2 forums port version 2.0.5 (c) 2003 - Nuke Cops (http://nukecops.com)
*
* Ported by Nuke Cops to phpbb2 standalone 2.0.5 Test
* and debugging completed by the Elite Nukers and site members.
*
* You run this package at your sole risk. Nuke Cops and affiliates cannot
* be held liable if anything goes wrong. You are advised to test this
* package on a development system. Backup everything before implementing
* in a production environment. If something goes wrong, you can always
* backout and restore your backups.
*
* Installing and running this also means you agree to the terms of the AUP
* found at Nuke Cops.
*
* This is version 2.0.5 of the phpbb2 forum port for PHP-Nuke. Work is based
* on Tom Nitzschner's forum port version 2.0.6. Tom's 2.0.6 port was based
* on the phpbb2 standalone version 2.0.3. Our version 2.0.5 from Nuke Cops is
* now reflecting phpbb2 standalone 2.0.5 that fixes some bugs and the
* invalid_session error message.
***************************************************************************/
/***************************************************************************
* This file is part of the phpBB2 port to Nuke 6.0 (c) copyright 2002
* by Tom Nitzschner (tom@toms-home.com)
* http://bbtonuke.sourceforge.net (or http://www.toms-home.com)
*
* As always, make a backup before messing with anything. All code
* release by me is considered sample code only. It may be fully
* functual, but you use it at your own risk, if you break it,
* you get to fix it too. No waranty is given or implied.
*
* Please post all questions/request about this port on http://bbtonuke.sourceforge.net first,
* then on my site. All original header code and copyright messages will be maintained
* to give credit where credit is due. If you modify this, the only requirement is
* that you also maintain all original copyright messages. All my work is released
* under the GNU GENERAL PUBLIC LICENSE. Please see the README for more information.
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/

define('SMTP_INCLUDED', 1);

//
// This function has been modified as provided
// by SirSir to allow multiline responses when
// using SMTP Extensions
//
function server_parse($socket, $response, $line = __LINE__)
{
while (substr($server_response, 3, 1) != ' ')
{
if (!($server_response = fgets($socket, 256)))
{
message_die(GENERAL_ERROR, "Couldn't get mail server response codes", "", $line, __FILE__);
}
}

if (!(substr($server_response, 0, 3) == $response))
{
message_die(GENERAL_ERROR, "Ran into problems sending Mail. Response: $server_response", "", $line, __FILE__);echo $server_response
}
}

// Replacement or substitute for PHP's mail command
function smtpmail($mail_to, $subject, $message, $headers = '')
{
global $board_config;

// Fix any bare linefeeds in the message to make it RFC821 Compliant.
$message = preg_replace("#(?<!\r)\n#si", "\r\n", $message);

if ($headers != '')
{
if (is_array($headers))
{
if (sizeof($headers) > 1)
{
$headers = join("\n", $headers);
}
else
{
$headers = $headers[0];
}
}
$headers = chop($headers);

// Make sure there are no bare linefeeds in the headers
$headers = preg_replace('#(?<!\r)\n#si', "\r\n", $headers);

// Ok this is rather confusing all things considered,
// but we have to grab bcc and cc headers and treat them differently
// Something we really didn't take into consideration originally
$header_array = explode("\r\n", $headers);
@reset($header_array);

$headers = '';
while(list(, $header) = each($header_array))
{
if (preg_match('#^cc:#si', $header))
{
$cc = preg_replace('#^cc:(.*)#si', '\1', $header);
}
else if (preg_match('#^bcc:#si', $header))
{
$bcc = preg_replace('#^bcc:(.*)#si', '\1', $header);
$header = '';
}
$headers .= ($header != '') ? $header . "\r\n" : '';
}

$headers = chop($headers);
$cc = explode(', ', $cc);
$bcc = explode(', ', $bcc);
}

if (trim($subject) == '')
{
message_die(GENERAL_ERROR, "No email Subject specified", "", __LINE__, __FILE__);
}

if (trim($message) == '')
{
message_die(GENERAL_ERROR, "Email message was blank", "", __LINE__, __FILE__);
}

// some code was removed here for 2.0.6

// Ok we have error checked as much as we can to this point let's get on
// it already.
if( !$socket = fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )
{
message_die(GENERAL_ERROR, "Could not connect to smtp host : $errno : $errstr", "", __LINE__, __FILE__);
}

// Wait for reply
server_parse($socket, "220", __LINE__);

// Do we want to use AUTH?, send RFC2554 EHLO, else send RFC821 HELO
// This improved as provided by SirSir to accomodate
if( !empty($board_config['smtp_username']) && !empty($board_config['smtp_password']) )
{
fputs($socket, "EHLO " . $board_config['smtp_host'] . "\r\n");
server_parse($socket, "250", __LINE__);

fputs($socket, "AUTH LOGIN\r\n");
server_parse($socket, "334", __LINE__);

fputs($socket, base64_encode($board_config['smtp_username']) . "\r\n");
server_parse($socket, "334", __LINE__);

fputs($socket, base64_encode($board_config['smtp_password']) . "\r\n");
server_parse($socket, "235", __LINE__);
}
else
{
fputs($socket, "HELO " . $board_config['smtp_host'] . "\r\n");
server_parse($socket, "250", __LINE__);
}

// From this point onward most server response codes should be 250
// Specify who the mail is from....
fputs($socket, "MAIL FROM: <" . $board_config['board_email'] . ">\r\n");
server_parse($socket, "250", __LINE__);

// Specify each user to send to and build to header.
$to_header = '';

// Add an additional bit of error checking to the To field.
$mail_to = (trim($mail_to) == '') ? 'Undisclosed-recipients:;' : trim($mail_to);
if (preg_match('#[^ ]+\@[^ ]+#', $mail_to))
{
fputs($socket, "RCPT TO: <$mail_to>\r\n");
server_parse($socket, "250", __LINE__);
}

// Ok now do the CC and BCC fields...
@reset($bcc);
while(list(, $bcc_address) = each($bcc))
{
// Add an additional bit of error checking to bcc header...
$bcc_address = trim($bcc_address);
if (preg_match('#[^ ]+\@[^ ]+#', $bcc_address))
{
fputs($socket, "RCPT TO: <$bcc_address>\r\n");
server_parse($socket, "250", __LINE__);
}
}

@reset($cc);
while(list(, $cc_address) = each($cc))
{
// Add an additional bit of error checking to cc header
$cc_address = trim($cc_address);
if (preg_match('#[^ ]+\@[^ ]+#', $cc_address))
{
fputs($socket, "RCPT TO: <$cc_address>\r\n");
server_parse($socket, "250", __LINE__);
}
}

// Ok now we tell the server we are ready to start sending data
fputs($socket, "DATA\r\n");

// This is the last response code we look for until the end of the message.
server_parse($socket, "354", __LINE__);

// Send the Subject Line...
fputs($socket, "Subject: $subject\r\n");

// Now the To Header.
fputs($socket, "To: $mail_to\r\n");

// Now any custom headers....
fputs($socket, "$headers\r\n\r\n");

// Ok now we are ready for the message...
fputs($socket, "$message\r\n");

// Ok the all the ingredients are mixed in let's cook this puppy...
fputs($socket, ".\r\n");
server_parse($socket, "250", __LINE__);

// Now tell the server we are done and close the socket...
fputs($socket, "QUIT\r\n");
fclose($socket);

return TRUE;
}

?>
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 3:26 am Reply with quoteBack to top

Your Forum aligned my stmp.php, sweet!

Now if im not mistaking line 150 is


message_die(GENERAL_ERROR, "No email Subject specified", "", __LINE__, __FILE__);


I would get the error message "No email Subject specified" when I clicked submit, but it had a Subject!

So I Clicked Submit again and then when I got the Error in line 150 in smtp.php could not connect to host... is my subject field messed up somehow?

This is trying to send an email to another user email on there... the PM's go through fine, I I went in the Forum, looked through the memberlist and picked one out and tried to send them an email after installing the Email HAck... and that is whats happening to me....
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 3:29 am Reply with quoteBack to top

I also have a different theme than subsilver im using would this cause my subject field to screw up even though it has subject?
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 3:31 am Reply with quoteBack to top

Hey is this line


// Ok we have error checked as much as we can to this point let's get on
// it already.
if( !$socket = fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )


where I can change port 25 to 587?
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 3:54 am Reply with quoteBack to top

This where I sent the email from

http://www.studio505.net/nuke2/modules.php?name=Members_List
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 24, 2005 4:28 am Reply with quoteBack to top

The STRANGEST THING HAPPENED.. all i did was change the port number from 25 to 587 and its working now...

It must be a port block on 25 from the ISP or something,,, No more error messages are popping up...
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
jedimasta
Nuke Cadet
Nuke Cadet


Joined: Aug 29, 2005
Posts: 7


PostPosted: Mon Aug 29, 2005 8:21 am Reply with quoteBack to top

Time to revisit this, I suppose. I was having problems in sending newsletters. The original fix on the first page worked like a charm. Messages seem to be getting through no problem.

One quick thing though, after sending a newsletter, the page refreshes to blank white. Before changing the function, I'd get the "your newsletter has been sent". Now I get nothing. I wouldn't have too much of a problem with it, but I'm trying to make the site as dummy proof as possible for our main user. Any thoughts?

Using phpnuke 7.7
Find all posts by jedimastaView user's profileSend private message
Rockdrala
Sergeant
Sergeant


Joined: Aug 09, 2005
Posts: 97


PostPosted: Wed Aug 31, 2005 3:08 am Reply with quoteBack to top

yeah Jedi defienteley change your port numbers after you implement the smtp hack by disgruntlet tech.. it took me abour 5 hours playing with to find where to change the port number...

Look for this in smtp.php

// some code was removed here for 2.0.6

// Ok we have error checked as much as we can to this point let's get on
// it already.
if( !$socket = fsockopen($board_config['smtp_host'], 25, $errno, $errstr, 20) )
{
message_die(GENERAL_ERROR, "Could not connect to smtp host : $errno : $errstr", "", __LINE__, __FILE__);



That 25 there is the port number... I changed mine to 587

The reason why you should change the port number is becuase whenever anybody like susie in ny or bobby in florida tries to send mail... their isp may have put on block 25... Bellsouth does (really sucks) I called Bellsouth and they wont take it theirs off becuase its part of their nampty pampty anti-spam commitee... I told them they only need to block reported ip's spam and they cant their policy and shove it up their you know what... for example

Susie is browsing a php site called how to get guys and wants to register becuase she wants to post a comment... she gets an error when when she clicks submit
error 65 no route to server
error on line 150 in smtp.php

thats becuase the mailer tried to use port 25 and her isp filters port 25

Now lets say pyschop bobby is spying the site how to get guys to write an article for maxim called what chicks think..

He signups under an anonymous name etc...
when he clicks submit it goes through and he gets his email in outlook express etc...

Thats becuase the internet service he uses doesnt filter port 25...

If you run your own smtp server i def recommend changing the port settings...

Or call your domain host for the port 25 filter "workaround port number"...

Yahoo's workaround port number is 587... The one I use
Find all posts by RockdralaView user's profileSend private messageVisit poster's websiteYahoo Messenger
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next 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



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.443 Seconds - 300 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::