Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Activation Email not being sent

12 years 3 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

I read your fix for activation emails in the thread...
www.jomsocial.com/forum/modules-plugins-...not-being-sent#90923

but your suggested code fix does not line up with 3.2.0.6
You propose changing line 796 but this is the code at line 793 onwards:

// Send email to user
//if ( ! ($type == 'registration_complete' && !$requireApproval && !$needActivation))
if ($type != 'registration_uncomplete' && ($com_user_activation_type != 0 || $requireApproval)) {
if ($requireApproval || $com_user_activation_type == 2) {
$subject = JText::sprintf('COM_COMMUNITY_USER_REGISTERED_WAITING_APPROVAL_TITLE', $sitename);
}

//check if HTML emails are set to ON
if ($config->get('htmlemail')) {
$sendashtml = true;
$tmpl = new CTemplate();
$message = CString::str_ireplace(array("\r\n", "\r", "\n"), '<br />', $message);

$tmpl->set('name', $name);
$tmpl->set('email', $email);

$message = $tmpl->set('unsubscribeLink', CRoute::getExternalURL('index.php?option=com_community&view=profile&task=email'), false)
->set('content', $message)
->set('copyrightemail', $copyrightemail)
->set('sitename', $config->get('sitename'))
->fetch('email.html');
}

$mail = JFactory::getMailer();
$mail->sendMail($mailfrom, $fromname, $email, $subject, $message, $sendashtml);
}

It is not clear from your post how much of this to delete and how much to keep. Could you post a new copy of register.php for version 3.2.0.6

Thanks

12 years 3 months ago
Licenses:

Hi, Peter.

You don't need to delete anything... just add the code Albertus provided.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
12 years 3 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Licenses:
JomSocial Active

Michal
I now receive emails, thanks for that, but they dont have an activation link in them.
I have joomla->users->options ->new user account activation set to Self.

The emails states:

Thank you for registering at fcp.co. Your account details are as follows:
Username: XXXX
Password: XXX
Once you have completed the rest of registration process, you will receive another confirmation email.

Any ideas?
Peter

12 years 3 months ago
Licenses:

Hi, Peter.

I disabled sending password and now I get: prntscr.com/3yaio4
So activation link is sent :)
Please, check it.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW