Please Log in to join the conversation.
robfromfort wrote: The software isn't sending out messages through joomla. However joomla and also kunena are doing just fine sending out messages. I think, even though you don't want to acknowledge it, there might be an issue with your component integrating with joomla correctly.
function uddeIMmosMail($from, $fromname, $recipient, $subject, $body, $mode=0, $cc=NULL, $bcc=NULL, $attachment=NULL, $replyto=NULL, $replytoname=NULL ) {
$mailer = JFactory::getMailer();
if (!empty($replyto) && !empty($replytoname))
$mailer-> addReplyTo($replyto, $replytoname);
else if (!empty($replyto))
$mailer-> addReplyTo($replyto);
$sender = array( $from, $fromname );
$mailer->setSender($sender);
$mailer->addRecipient($recipient);
$mailer->setSubject($subject);
$mailer->setBody($body);
//$mailer->addAttachment(JPATH_COMPONENT.DS.'assets'.DS.'document.pdf');
if ($mode==1) {
$mailer->isHTML(true);
$mailer->Encoding = 'base64';
}
if (!empty($bcc))
$mailer->addBCC($bcc);
if (!empty($cc))
$mailer->addCC($cc);
$send = $mailer->Send();
return $send;
// return JMail::sendMail($from, $fromname, $recipient, $subject, $body, $mode, $cc, $bcc, $attachment, $replyto, $replytoname );
}
Please Log in to join the conversation.