albhu Posted July 19, 2020 Share Posted July 19, 2020 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 Quote Link to comment Share on other sites More sharing options...
Tom V Posted July 19, 2020 Share Posted July 19, 2020 Here you go: 1 Quote Link to comment Share on other sites More sharing options...
albhu Posted July 19, 2020 Author Share Posted July 19, 2020 1 hour ago, Tom V said: Here you go: Thank you so much! Quote Link to comment Share on other sites More sharing options...
Sim Posted July 19, 2020 Share Posted July 19, 2020 Great mood. Quote Link to comment Share on other sites More sharing options...
albhu Posted July 20, 2020 Author Share Posted July 20, 2020 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? 1 Quote Link to comment Share on other sites More sharing options...
Tom V Posted July 20, 2020 Share Posted July 20, 2020 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); } Quote Link to comment Share on other sites More sharing options...
Sim Posted July 20, 2020 Share Posted July 20, 2020 The latest version of GL should be included in the next release of GL in the ACP @Dayo request Installed Version: Latest Version: Quote Link to comment Share on other sites More sharing options...
albhu Posted July 25, 2020 Author Share Posted July 25, 2020 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? Quote Link to comment Share on other sites More sharing options...
InverTed Posted August 2, 2020 Share Posted August 2, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
Dave Posted August 3, 2020 Share Posted August 3, 2020 You can buy said hosting here: https://makewebgames.io/store/category/2-hosting/ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.