- Posts: 68
- Thank you received: 18
Kunena 7.0.4 Released
The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0
Solved Problem with email
- Kubik-Rubik
-
- Offline
- Moderator
-
Less
More
7 years 9 months ago - 7 years 9 months ago #202683
by Kubik-Rubik
Hey 810,
encountered the same issue and can give you some insights.
First my temporary workaround so that the emails are sent again:
\KunenaEmail::send (libraries/kunena/email/email.php)
Attention: For me this is sufficient because I'm the only notification receiver and don't need to hide email addresses in BCC etc.
The problem is that you don't set the proper default mailer in the current Kunena code. I use SMTP but if you check the object that was created by Kunena, you see that the SMTP data is not set properly (in fact the mailer is set to "mail" which does not work on my server due to security settings):
You need to specify the SMTP values explicitly, this is how it is done in the Factory class correctly and thus my workaround works as expected. Just take a look into this function \Joomla\CMS\Factory::createMailer (libraries/src/Factory.php).
My suggestion: Either use \Joomla\CMS\Factory::getMailer() or set the mailer properly.
Have success!
Kubik-Rubik Joomla! Extensions
kubik-rubik.de
Replied by Kubik-Rubik on topic Problem with email
810 wrote: we are still investigating the issue.
Hey 810,
encountered the same issue and can give you some insights.
First my temporary workaround so that the emails are sent again:
\KunenaEmail::send (libraries/kunena/email/email.php)
Code:
foreach ($chunks as $emails)
{
try
{
\Joomla\CMS\Factory::getMailer()->sendMail(\Joomla\CMS\Factory::getApplication()->get('mailfrom'), \Joomla\CMS\Factory::getApplication()->get('fromname'), $emails, $mail->Subject, $mail->Body, true);
}
catch (Exception $e)
{
$success = false;
\Joomla\CMS\Log\Log::add($e->getMessage(), \Joomla\CMS\Log\Log::ERROR, 'kunena');
}
}
Attention: For me this is sufficient because I'm the only notification receiver and don't need to hide email addresses in BCC etc.
The problem is that you don't set the proper default mailer in the current Kunena code. I use SMTP but if you check the object that was created by Kunena, you see that the SMTP data is not set properly (in fact the mailer is set to "mail" which does not work on my server due to security settings):
You need to specify the SMTP values explicitly, this is how it is done in the Factory class correctly and thus my workaround works as expected. Just take a look into this function \Joomla\CMS\Factory::createMailer (libraries/src/Factory.php).
My suggestion: Either use \Joomla\CMS\Factory::getMailer() or set the mailer properly.
Have success!
Kubik-Rubik Joomla! Extensions
kubik-rubik.de
Last edit: 7 years 9 months ago by Kubik-Rubik.
The following user(s) said Thank You: bikeboy
Please Log in or Create an account to join the conversation.
7 years 9 months ago #202690
by 810
Replied by 810 on topic Problem with email
@fiat4x4.gr could you test the nightly build. Its should be ok now.
Please Log in or Create an account to join the conversation.
- fiat4x4.gr
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 46
- Thank you received: 3
7 years 9 months ago #202697
by fiat4x4.gr
Replied by fiat4x4.gr on topic Problem with email
Thank you very much, but my knowledge is by far less than yours. It's all seems Greek to me...:laugh: I'll wait the 5.1.3 update that probably will resolve the problem.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #202710
by 810
Replied by 810 on topic Problem with email
on the bottom of the download page, you have the nightly builds, that you can install.
The following user(s) said Thank You: bikeboy
Please Log in or Create an account to join the conversation.
- fiat4x4.gr
-
Topic Author
- Offline
- Junior Member
-
Less
More
- Posts: 46
- Thank you received: 3
7 years 8 months ago #203953
by fiat4x4.gr
Replied by fiat4x4.gr on topic Problem with email
Kunena 5.1.3 Dione solved the problem!
The following user(s) said Thank You: bikeboy
Please Log in or Create an account to join the conversation.
Time to create page: 0.269 seconds