Jump to content
albhu

Sender email address change

Recommended Posts

Hi all! 

 i did not find any topic about, but i would like to change the system messages email address, do you have any tips where can i change it? GLV2 

 

thanks

Share this post


Link to post
Share on other sites

i was uploaded the the module and after i changed the mail address, but still sends the messages from the hosting mail and not from mine address. What you think, did i something wrong?

  • Like 1

Share this post


Link to post
Share on other sites

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);
        }

Share this post


Link to post
Share on other sites

The latest version of GL should be included in the next release of GL in the ACP  @Dayo request

Installed Version:

Latest Version:

Share this post


Link to post
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?

Share this post


Link to post
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

Share this post


Link to post
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...