Topic-icon New user emails being sent despite set not to

Active Subscriptions:

None
6 years 2 weeks ago - 6 years 2 weeks ago #63720 by buztan
We are using JFBConnect in conjunction with EasySocial and when a new user registers using the Facebook account option, an email is sent to Admins announcing this, but we have set in both Joomla & EasySocial not to send notification emails for new registrations. The emails look like they come from EasySocial but they have said it must be JFBConnect not respecting the "do not send" option and asking for one to be sent. Any suggestions on how to fix this?
Last edit: 6 years 2 weeks ago by buztan.
The topic has been locked.
Support Specialist
6 years 2 weeks ago #63723 by mel
There is also an option in JFBConnect for sending user emails for social registrations. Please verify that you've also set the JFBConnect backend > Configuration > General > 'Send New User Email' option to No.

If that's not the issue, could you provide the text of the email? That'd be a quick way to determine if it's coming from JFBConnect (by comparing against our language file strings)

-Melissa
The topic has been locked.
Active Subscriptions:

None
6 years 2 weeks ago - 6 years 2 weeks ago #63730 by buztan
I can confirm that "JFBConnect backend > Configuration > General > 'Send New User Email' option is set to No (although I presumed that would only send to the new user and not the Admin as well, but I turned it off just to be sure!)

When you say "There is also an option in JFBConnect for sending user emails for social registrations" is that referring to above and if not please advise where the setting is?

For the actual message, from the source this is the starting point of the HTML in case you recognise it:
<head>
<base href="faenet.org/" target="_blank" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="x-apple-disable-message-reformatting">
<title></title>

<style>

/* What it does: Remove spaces around the email design added by some email clients. */
/* Beware: It can remove the padding / margin and add a background color to the compose a reply window. */
html,
body {
margin: 0 auto !important;



The actual message starts:

Awesome! A new user registered on the site.
New Registration!

Hello Buzzy Cnayl,

This is a notification to let you know that a new user has registered on the site. This e-mail contains their details
Last edit: 6 years 2 weeks ago by buztan.
The topic has been locked.
Support Specialist
6 years 2 weeks ago #63731 by alzander
Buzzy,
The EasySocial devs are correct. We just looked through our code and we are always sending the new user emails, regardless of the settings you've chosen. For now, I'd recommend making a quick change to our code to disable the emails. We'll look into respecting the email setting for a future update.

To make the change, edit the /plugins/socialprofiles/easysocial/easysocial.php file. Around line 457, you should see:
$registrationModel->notify($mailerData, $esUser, $profile);
That is the line that emails the user about their account.

At line 460, you should see:
$registrationModel->notifyAdmins($mailerData, $esUser, $profile);
That is the line that emails the administrators.

Remove or put a comment, 2 forward slashes (//) in front of the email line you want to disable.

I hope that helps get you going, but please let us know if you run into any other issues.

Thanks,
Alex
The topic has been locked.