1
deka87
Error in Registration Confirmation Mail
  • 2008/1/22 19:50

  • deka87

  • Friend of XOOPS

  • Posts: 1124

  • Since: 2007/10/5


Hi,

I seem to have an error in my registration emails. When a user registers, the confirmation email is sent to the user for user-activation. But the link they receive is wrong. It goes like http://mysite.comhttp://mysite.com/modules/profile/act... I found in another topic that the problem is this string {X_UACTLINK} that can be found in register.php. I have to correct something here, but I can't find what. Any suggestions?

if ($xoopsModuleConfig['activation_type'] == 0) {
            
$xoopsMailer =& getMailer();
            
$xoopsMailer->useMail();
            
$xoopsMailer->setTemplate('register.tpl');
            
$xoopsMailer->setTemplateDir(XOOPS_ROOT_PATH."/modules/profile/language/".$xoopsConfig['language']."/mail_template");
            
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
            
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
            
$xoopsMailer->assign('SITEURL'XOOPS_URL."/");
            
$xoopsMailer->setToUsers(new XoopsUser($newid));
            
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
            
$xoopsMailer->setFromName($xoopsConfig['sitename']);
            
$xoopsMailer->setSubject(sprintf(_PROFILE_MA_USERKEYFOR$newuser->getVar('uname')));
            if ( !
$xoopsMailer->send() ) {
                echo 
_PROFILE_MA_YOURREGMAILNG;
            } else {
                echo 
_PROFILE_MA_YOURREGISTERED;
            }


Thanks in advance
Mind anchors

2
christian
Re: Error in Registration Confirmation Mail
  • 2008/1/22 20:40

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


Hi,

What is your XOOPS version ?

3
deka87
Re: Error in Registration Confirmation Mail
  • 2008/1/23 7:25

  • deka87

  • Friend of XOOPS

  • Posts: 1124

  • Since: 2007/10/5


It's XOOPS 2.2.3. If anybody knows how to solve this problem, please let me know as soon as possible because the site is working and it needs registration to work properly. Thanks in advance.
Mind anchors

4
christian
Re: Error in Registration Confirmation Mail
  • 2008/1/23 12:07

  • christian

  • Just can't stay away

  • Posts: 401

  • Since: 2002/2/24


It's a unstable release, update to xoops 2.2.5, and next 2.2.6

5
deka87
Re: Error in Registration Confirmation Mail
  • 2008/1/23 16:19

  • deka87

  • Friend of XOOPS

  • Posts: 1124

  • Since: 2007/10/5


But those are unstable too
Mind anchors

6
deka87
Re: Error in Registration Confirmation Mail
  • 2008/1/24 6:07

  • deka87

  • Friend of XOOPS

  • Posts: 1124

  • Since: 2007/10/5


But you were right, man, it helped alright. Thank you.
Mind anchors

Login

Who's Online

48 user(s) are online (31 user(s) are browsing Support Forums)


Members: 0


Guests: 48


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits