Hi,
Hi, I have the same problem. I´ve install the file, but the problem continue.
Can you please describe the step-by-step procedure to get this error? In this topic the author have a compatibility issue with Joomla Privacy tools, but in your site the tool is disabled.
but I need sendo only some fields, not all.
You can use following code in the skeleton plugin file
<?php
defined('_JEXEC') or die;
class PlgJsnSkeleton extends JPlugin
{
public function triggerProfileUpdate($user, $data, $changed, $isNew)
{
if($isNew)
{
$body=$user->name." updated user profile. \n\n";
$body.="The value of the field is: ". $data["ALIAS_OF_THE_FIELD"] ."\n";
$config = JFactory::getConfig();
$result=JFactory::getMailer()->sendMail(
$config->get( 'mailfrom' ), // Sender Mail
$config->get( 'fromname' ), // Sender Name
'[email protected]', // Receiver Mail
'New User', // Subject Mail
$body // Body Mail
);
}
}
}
NOTE: replace
ALIAS_OF_THE_FIELD with the alias of the field that you want to include in the email