new logMail()

  • Facundo Esteban Palermo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 3 months ago #153743 by Facundo Esteban Palermo
new logMail() was created by Facundo Esteban Palermo
Hello!
I think it is preferable that the logMail happens after the sendmail().
because if an error occurs, the logMail log is saved without being sent.                    $mailer = JFactory::getMailer();
                    try
                    {
                        //OSBHelper::logMail($email_type, $orderId, $email, $sbj, $body);
                        $mailer->sendMail($mailfrom, $fromname, $email, $sbj, $body1, 1);

                        OSBHelper::logMail($email_type, $orderId, $email, $sbj, $body);
                    }
                    catch (Exception $e)
                    {
                        JFactory::getApplication()->enqueueMessage($e->getMessage(), 'warning');
                    }

thanks for this new feature!

Please Log in or Create an account to join the conversation.

  • Facundo Esteban Palermo
  • Topic Author
  • Offline
  • New Member
  • New Member
More
2 years 2 months ago #153784 by Facundo Esteban Palermo
Replied by Facundo Esteban Palermo on topic new logMail()
Hi! There is a bug in pagination. clicking on "page 2" redirects to /administrator/index.php and shows the mail templates view.
see attachments

best regards
Attachments:

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #153789 by Mr. Dam
Replied by Mr. Dam on topic new logMail()
OK, i will monitor this issue
Thanks
Dam

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #153790 by Mr. Dam
Replied by Mr. Dam on topic new logMail()
Hi,
You can solve this issue by following below steps
1. Open file [root] -> administrator -> components -> com_osservicesbooking -> classes -> logs.html.php
2. Find:
Code:
<input type="hidden" name="task" value="emails_list" />
and change to
Code:
<input type="hidden" name="task" value="log_list" />

Good luck
Dam

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam