.$x = debug_backtrace();
foreach ($x as $l) echo $l['file'].' '.$l['line']."<br />\n";
die(__FILE__.'@'.__LINE__);
// Send the registration email. if (VmConfig::showDebug() and $debug_email == 'debug_email') { $msg = 'Registration Debug mail active, no mail sent. The mail to send subject ' . $emailSubject . ' to "' . $data['email'] . '" from ' . $data['mailfrom'] . ' ' . $data['fromname'] . ' ' . vmText::$language->getTag() . '<br>' . $emailBody; vmdebug($msg); $return = true; } else { if (JFactory::getApplication()->get('mailonline', 1)) { if (JVM_VERSION >= 4) { $mailer = new \Joomla\CMS\Mail\MailTemplate($mailtemplate, $app->getLanguage()->getTag()); $mailer->addTemplateData($data); $mailer->addRecipient($data['email']); $return = $mailer->send(); } else { $return = JFactory::getMailer()->sendMail($data['mailfrom'], $data['fromname'], $data['email'], $emailSubject, $emailBody); } } }// Send the registration email.
if (VmConfig::showDebug() and $debug_email == 'debug_email')
{
$msg = 'Registration Debug mail active, no mail sent. The mail to send subject ' . $emailSubject . ' to "' . $data['email'] . '" from ' . $data['mailfrom'] . ' ' . $data['fromname'] . ' ' . vmText::$language->getTag() . '<br>' . $emailBody;
vmdebug($msg);
$return = true;
}
else
{
$return = true;
if (JFactory::getApplication()->get('mailonline', 1))
{
try {
if (JVM_VERSION >= 4)
{
$mailer = new \Joomla\CMS\Mail\MailTemplate($mailtemplate, $app->getLanguage()->getTag());
$mailer->addTemplateData($data);
$mailer->addRecipient($data['email']);
$return = $mailer->send();
}
else
{
$return = JFactory::getMailer()->sendMail(
$data['mailfrom'],
$data['fromname'],
$data['email'],
$emailSubject,
$emailBody
);
}
}
catch (\Throwable $e)
{
$return = false;
// Log technique
if (class_exists('\Joomla\CMS\Log\Log')) {
\Joomla\CMS\Log\Log::add(
'Registration mail failed for ' . ($data['email'] ?? '-') . ' : ' . $e->getMessage(),
\Joomla\CMS\Log\Log::WARNING,
'mail'
);
}
}
// Message to user
if (!$return) {
if (function_exists('vmWarn')) {
vmWarn("Confirmation e-mail not sent (e-mail adress / invalid domain).Your account is created, you can continue.");
} else {
$app->enqueueMessage("Confirmation e-mail not sent (e-mail adress / invalid domain).Your account is created, you can continue.", "warning");
}
}
}
}Page created in 0.085 seconds with 13 queries.