Welcome, Guest
Username: Password: Remember me

TOPIC: [SOLVED] Admin emails sent to registrant & multiple times

[SOLVED] Admin emails sent to registrant & multiple times 11 years 4 months ago #21481

  • rjrosamond
  • rjrosamond's Avatar Topic Author
  • Offline
  • Junior Boarder
  • Junior Boarder
  • Posts: 21
  • Thank you received: 0
My ticket # TECH-H3N34W7X7D is still open. Can you take a look for me? Thanks.

Please Log in or Create an account to join the conversation.

[SOLVED] Admin emails sent to registrant & multiple times 11 years 4 months ago #21490

  • waynejb
  • waynejb's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 131
  • Thank you received: 4
Opened a ticket, where do we stand?

Please Log in or Create an account to join the conversation.

[SOLVED] Admin emails sent to registrant & multiple times 11 years 4 months ago #21494

  • w2kd
  • w2kd's Avatar
  • Offline
  • Expert Boarder
  • Expert Boarder
  • Posts: 88
  • Thank you received: 1
waynejb if you need the same fix that they sent me eg for 3.0.3 DTRegister then contact me through my website with your details and I'll send you what I have if that helps.
http://www.splatgraphics.com.au

Please Log in or Create an account to join the conversation.

[SOLVED] Admin emails sent to registrant & multiple times 11 years 4 months ago #21505

  • Viperfish
  • Viperfish's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
This could be a Joomla3.x error. When the sendmail() function is called to send the admin email it appears the JMail object is holding data from the original call which sent the registrant email. I fixed this by sending a unique id on each JMail::getInstance() so it's a clean instance for each email.

In administrator/components/dt_register/models/user.php look for the function registrationemail(). This is the function that sends the email to the admin.

Find the following line near the bottom of the registrationemail() function.
$dt_mail = JMail::getInstance();
Change it to:
$dt_mail = JMail::getInstance($this->randString(6));
Then paste the following function into the same class. Take notice of closing brackets. If you paste a function within another you'll get a fatal error. This generates the random id.
function randString($length, $charset='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz')
    {
        $str = '';
        $count = strlen($charset);
        while ($length--) {
            $str .= $charset[mt_rand(0, $count-1)];
        }
        return $str;
    }

That's it.

Please Log in or Create an account to join the conversation.

[SOLVED] Admin emails sent to registrant & multiple times 11 years 4 months ago #21536

  • nathan.dth
  • nathan.dth's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 1857
  • Karma: 19
  • Thank you received: 218
No need to patch anything or try to fix it yourself... just upgrade to the now available 3.0.4 package. The fix is included. Thanks!

Please Log in or Create an account to join the conversation.

Nathan is no longer affiliated with DTH since the recent acquisition. You can connect with him and get any type of Joomla website help at www.JoomlaEmployee.com .

[SOLVED] Admin emails sent to registrant & multiple times 11 years 3 months ago #21619

  • mtwizel
  • mtwizel's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 4
  • Thank you received: 0
You have an open ticket from me for about 3 month now. An admin account to the site back end and annual subscription fee paid, would there be anything else?

Please Log in or Create an account to join the conversation.

Time to create page: 0.291 seconds