Topic-icon Disable new user registration mail only for user and not for admin

Active Subscriptions:

None
Dear sirs,
how can I disable the sending of new user registration mail only for user and not for admin.
I try to comment thi line $this->sendNewUserEmails($jUser); but the mail doesn't send neither user and admin. I want to receive mail like admin.
Thank you.
The topic has been locked.
Active Subscriptions:

None
13 years 1 month ago - 13 years 1 month ago #32965 by luca77
Please any support??? I have two subscriptions!
Last edit: 13 years 1 month ago by luca77.
The topic has been locked.
Support Specialist
Luca,
I apologize for the delay. To disable just the user email, and not the admin email, you'd need to make a different modification in the same file.

Around line 495, you'll see:
// Send the registration email.
        $return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody);
Comment out the 2nd line above, which is just for the user email. The rest of the code below that is for the administrator emails.

I hope that helps, but if you still have questions, just let me know.

Thanks,
Alex
The topic has been locked.
Active Subscriptions:

None
It works!
Thank you so much!
The topic has been locked.
Support Specialist
Awesome! Glad to hear that got you going. Should you need anything else, just let us know.

Finally, if you haven't already, please consider leaving a rating and review for JFBConnect, or our support, on the Joomla Extension Directory. It certainly isn't required, but is very appreciated:
extensions.joomla.org/extensions/social-...ook-integration/7215

Thanks,
Alex
The topic has been locked.