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.
Please feel free to make suggestions how to fix this issue.
I am very grateful for any help.
In uddeimlibXX.php you will find the wrapper function that sends all mosMail messages:
Code:
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 );
}
When Joomla is configured to use Sendmail or phpmail the code above works fine, when SMTP is used it does not work on a very few systems.