Jump to content
MakeWebGames

Sender email address change


albhu

Recommended Posts

Are you running the latest version 2.2.3 ?  You can check by looking at your class/user.php file. Around line 190 it should look like this:  

 public function sendActivationCode($email, $id, $username) {
            $settings = new settings();
            $from =  $settings->loadSetting('from_email');
            $headers = array();
            if ($from) {
                $headers['From'] = $from;
            }
            $gameName = $settings->loadSetting("game_name");
            $activationCode = $this->activationCode($id, $username);
            $subject = $gameName . " - Registration";
            $body = "$username your activation code for $gameName is $activationCode, after you have logged in please enter this when prompted.";
            mail($email, $subject, $body, $headers);
        }
Link to comment
Share on other sites

On 7/20/2020 at 9:26 PM, Tom V said:

Are you running the latest version 2.2.3 ?  You can check by looking at your class/user.php file. Around line 190 it should look like this:  


 public function sendActivationCode($email, $id, $username) {
            $settings = new settings();
            $from =  $settings->loadSetting('from_email');
            $headers = array();
            if ($from) {
                $headers['From'] = $from;
            }
            $gameName = $settings->loadSetting("game_name");
            $activationCode = $this->activationCode($id, $username);
            $subject = $gameName . " - Registration";
            $body = "$username your activation code for $gameName is $activationCode, after you have logged in please enter this when prompted.";
            mail($email, $subject, $body, $headers);
        }

 

  public function sendActivationCode($email, $id, $username) {
            $settings = new settings();
            $from =  $settings->loadSetting('from_email');
            $headers = array();
            if ($from) {
                $headers['From'] = $from;
            }

            $gameName = $settings->loadSetting("game_name");
            $activationCode = $this->activationCode($id, $username);
            $subject = $gameName . " - Registration";
            $body = "$username your activation code for $gameName is $activationCode, after you have logged in please enter this when prompted.";
            mail($email, $subject, $body, $headers);
        }

 

This is the same... maybe i have problem with my hosting system?

Link to comment
Share on other sites

The only hosting i know that won't let you send email activations would be free hosting. So unless that's what you're using then there is no reason why it won't work. If indeed you are using free hosting, I highly recommend contacting Dave about the MWG hosting, or just go spend the $2 in the marketplace for it. 

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...