Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #11  
Old 04-03-2016, 10:57 AM
tahbikat's Avatar
tahbikat tahbikat is offline
Member
 
Join Date: Feb 2014
Location: Louisiana
Posts: 408
Gender: Female
Credits: 49,616
tahbikat is on a distinguished road
Default

As for the emails not being sent issue, I think I switched to using my host's email (mysidia, thank you HoF!) and they started going through. I think that's all I did.. So yea, you should look into seeing which email hosts work.
Reply With Quote
  #12  
Old 04-03-2016, 11:47 AM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,714
NobodysHero is on a distinguished road
Default

Really appreciate your help, Pachoo. <3
Reply With Quote
  #13  
Old 04-03-2016, 04:12 PM
Hall of Famer's Avatar
Hall of Famer Hall of Famer is offline
Administrator, Lead Coder
 
Join Date: Dec 2008
Location: South Brunswick
Posts: 4,448
Gender: Male
Credits: 333,099
Hall of Famer is on a distinguished road
Default

Well another possibility is that you are using yahoo email, to my understanding yahoo does not allow you to send emails to users massively from a third party script like Mysidia. You need to switch to gmail, hotmail, or mysidia's own email system instead. Read this post I made earlier for references:

http://mysidiaadoptables.com/forum/s...19&postcount=2
__________________


Mysidia Adoptables, a free and ever-improving script for aspiring adoptables/pets site.
Reply With Quote
  #14  
Old 04-06-2016, 12:50 PM
NobodysHero's Avatar
NobodysHero NobodysHero is offline
Co-Owner of MystFell
 
Join Date: Nov 2013
Posts: 144
Gender: Female
Credits: 18,714
NobodysHero is on a distinguished road
Default

Okay, so I got the reply from tech support for my web host and they said it's enabled, but I still can't do anything with passwords, sending resets or setting a new one on my own. I even tried to send the email using the form in the ACP and that didn't work.

Here is my forgotpass.php file:
PHP Code:
<?php

use Resource\Native\String as String;

class 
ForgotpassController extends AppController{

    public function 
__construct(){
        
parent::__construct("guest");
    }
    
    public function 
index(){
        
$mysidia Registry::get("mysidia");        
        if(
$mysidia->input->post("submit")){
            
$user $mysidia->db->select("users", array("username""email""ip"), "username = '{$mysidia->input->post("username")}' and email = '{$mysidia->input->post("email")}'")->fetchObject();
            if(!
is_object($user)) throw new PasswordException("match");             
            else{
                
$rand codegen(10);
                
$date = new DateTime;
                
$mysidia->db->insert("passwordresets", array("id" => NULL"username" => $mysidia->input->post("username"), "email" => $mysidia->input->post("email"), "code" => $rand"ip" => $_SERVER['REMOTE_ADDR'], "date" => $date->format('Y-m-d')));

                
$headers "From: {$mysidia->settings->systememail}";    
                
$message "Hello there {$mysidia->input->post("username")}:\n\nOur records indicate that you requested a password reset for your account.  Below is your reset code:\n
                              Reset Code: 
{$rand}\n\nTo have your password changed please visit the following URL:\n
                              
{$mysidia->path->getAbsolute()}forgotpass/reset 
                              \n\nIf you did NOT request a password reset then please ignore this email to keep your current password.\n\n
                              Thanks,\nThe 
{$sitename} team.";
                
mail($mysidia->input->post("email"), "Password Reset Request for {$mysidia->input->post("username")}"$message$headers);
            }
            return;
        }          
    }
    
    public function 
reset(){
        
$mysidia Registry::get("mysidia");        
        if(
$mysidia->input->post("submit")){
            
$passwordResets $mysidia->db->select("passwordresets", array(), "username = '{$mysidia->input->post("username")}' and email = '{$mysidia->input->post("email")}' and code='{$mysidia->input->post("resetcode")}' ORDER BY id DESC LIMIT 1")->fetchObject();    
            if(!
is_object($passwordResets)) throw new InvalidCodeException("invalidcode");        
            else{        
                
$newPass $mysidia->user->reset($passwordResets->username$passwordResets->email); 
                
$this->setField("newPass", new String($newPass));                
            }                 
            return;
        }
    }
}
?>
That I'm aware of, none of the code has been changed from install. I'm at a total loss here and I have a few members who currently can't access their accounts. Any and all help is, was, and will always be appreciated.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 03:28 AM.

Currently Active Users: 9806 (0 members and 9806 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636