It is currently Fri Mar 29, 2024 8:01 am


All times are UTC


Forum rules


Please click here to view the forum rules



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: PHPNuke don't send mails
PostPosted: Fri Feb 11, 2005 10:19 pm 
Noobie
Noobie

Joined: Fri Feb 11, 2005 10:17 pm
Posts: 1
When a new user is registered the confirmation mail don't send.

Why?


Sorry for my bad english


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 10:29 pm 
Support Team Member

Joined: Thu Feb 10, 2005 12:13 pm
Posts: 76
How long did you wait for the email to arrive?
Is your mail account working?
Did you check your spam folder?
/sometimes mail messages may be diverted to the spam folder instead of your Inbox/

Send me your signup details if you still don't get the mail after 10-15 mins
/via email to support@100webspace.com/

_________________
Best Regards,
www.100WebSpace.com Support Team


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 11, 2005 10:34 pm 
Noobie
Noobie

Joined: Thu Feb 10, 2005 2:07 pm
Posts: 14
support1 wrote:
How long did you wait for the email to arrive?
Is your mail account working?
Did you check your spam folder?
/sometimes mail messages may be diverted to the spam folder instead of your Inbox/

Send me your signup details if you still don't get the mail after 10-15 mins
/via email to support@100webspace.com/


And what about this question: Is yours a FREE account? :wink:


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 3:41 am 
Noobie
Noobie

Joined: Sat Feb 12, 2005 3:38 am
Posts: 1
I've experienced this problem. I never found a solution with 100webspace, but if you want to use PHPNuke, but not send the emails, you could try PHPNuke Platinum here: http://techgfx.com Also, it all has to do with the amount of SQL space that you have in order to be able to send emails with PHPNuke.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 4:06 am 
Support Team Member

Joined: Thu Feb 10, 2005 12:13 pm
Posts: 76
May be I got you wrong
If you're trying to make your php scripts send mails then pls read this topic first:
http://forum.100webspace.com/viewtopic.php?t=6

_________________
Best Regards,
www.100WebSpace.com Support Team


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 12, 2005 10:39 am 
Noobie
Noobie

Joined: Thu Feb 10, 2005 2:07 pm
Posts: 14
You can avoid the mail confirmation on registration changing your "finishnewuser" function.
That is: go to your /modules/your_account/index.php and edit it. Then, change this part of the code:


Code:
function finishNewUser($username, $user_email, $user_password, $random_num, $gfx_check) {
    global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl;
    include("header.php");
    include("config.php");
    userCheck($username, $user_email);
    $user_regdate = date("M d, Y");
    if (!isset($stop)) {
   $datekey = date("F j");
   $rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
   $code = substr($rcode, 2, 6);
   if ($user=="whatever" AND $code != $gfx_check AND ($gfx_chk == 3 OR $gfx_chk == 4 OR $gfx_chk == 6 OR $gfx_chk == 7)) {
       Header("Location: modules.php?name=$module_name");
       die();
   }
        mt_srand ((double)microtime()*1000000);
        $maxran = 1000000;
        $check_num = mt_rand(0, $maxran);
   $check_num = md5($check_num);
   $time = time();
   $finishlink = "$nukeurl/modules.php?name=$module_name&op=activate&username=$username&check_num=$check_num";
   $new_password = md5($user_password);
   $username = check_html($username, nohtml);
   $user_email = check_html($user_email, nohtml);
   $db->sql_query("INSERT INTO ".$user_prefix."_users_temp (user_id, username, user_email, user_password, user_regdate, check_num, time) VALUES (NULL, '$username', '$user_email', '$new_password', '$user_regdate', '$check_num', '$time')");
   if(!$result) {
       echo ""._ERROR."<br>";
   } else {
       $message = ""._WELCOMETO." $sitename!\n\n"._YOUUSEDEMAIL." ($user_email) "._TOREGISTER." $sitename.\n\n "._TOFINISHUSER."\n\n $finishlink\n\n "._FOLLOWINGMEM."\n\n"._UNICKNAME." $username\n"._UPASSWORD." $user_password";
       $subject = ""._ACTIVATIONSUB."";
       $from = "$adminmail";
       mail($user_email, $subject, $message, "From: $from\nX-Mailer: PHP/" . phpversion());
       title("$sitename: "._USERREGLOGIN."");
       OpenTable();
       echo "<center><b>"._ACCOUNTCREATED."</b><br><br>";
       echo ""._YOUAREREGISTERED.""
           ."<br><br>"
      .""._FINISHUSERCONF."<br><br>"
      .""._THANKSUSER." $sitename!</center>";
       CloseTable();
   }
    } else {
   echo "$stop";
    }
    include("footer.php");
}


For this one:

Code:
function finishNewUser($username, $user_email, $user_password, $random_num, $gfx_check) {
global $stop, $EditedMessage, $adminmail, $sitename, $Default_Theme, $user_prefix, $db, $storyhome, $module_name, $nukeurl;
include("header.php");
include("config.php");
$user_password = md5($user_password);
userCheck($username, $user_email);
$user_regdate = date("M d, Y");
if (!isset($stop)) {
$result = $db->sql_query("INSERT INTO ".$user_prefix."_users (user_id, username, user_email, user_password, user_avatar, user_regdate, user_lang) VALUES (NULL, '$username', '$user_email', '$user_password', 'gallery/blank.gif', '$user_regdate', 'spanish')");
if($result){
echo "You're already registered. You can login in the menu below or clicking<a href=modules.php?name=Your_Account>here</a>";
}
} else {
echo "$stop";
}
include("footer.php");
}



In any case, you can change the message shown (you're already registered.... you know).
See you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ]  Moderators: fhmagic, KJ, Moderators, Support Team

All times are UTC


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 post attachments in this forum

Search for:
Jump to:  
cron
100WebSpace © 2011