Email notification configuration

10 years 3 months ago #240802 by robfromfort
Replied by robfromfort on topic Email notification configuration
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 Log in to join the conversation.

10 years 3 months ago #240806 by slabbi
Replied by slabbi on topic Email notification configuration

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:
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.

uddeIM & uddePF Development
CB Language Workgroup
CB 3rd Party Developer

Please Log in to join the conversation.

Moderators: beatnantslabbikrileon
Time to create page: 0.172 seconds

Facebook Twitter LinkedIn