Joomdle not sending course email with Hikashop

  • Barry Baronas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 months ago #1 by Barry Baronas
Joomdle not sending course email with Hikashop was created by Barry Baronas
Joomla 3.2.2
Hikashop Business 2.3.0
Joomdle .94
Moodle 2.6.1

Hi,

I have set up everything according to the Joomdle set up instructions and things appear to be working well. However, after Hikashop approves/confirms the purchase of a course I get an error "Could not instantiate mail function", and no email goes out to tell the person who purchased the Moodle course where to go to take the course. This is the email that would be sent by Joomdle - the Subject: "Welcome to COURSE_NAME", the Body: "To enter the course, go to: COURSE_URL".

I know, I know.... "This error means the Joomla mail setup has an issue...." I have read that many times, BUT, Joomla mails out fine, Acymailing mails out fine, Hikashop mails out fine. All systems go. In fact, I get the confirm email link (from Joomla), and the order has been confirmed email (from Hikashop). So it is working.

My email configuration in Joomla is to SMTP - properly configured for my SMTP server.

Any ideas why this one key email is not sending?

Any help would be most appreciated.

Thanks!

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

More
12 years 2 months ago #2 by Antonio Durán
Replied by Antonio Durán on topic Joomdle not sending course email with Hikashop
Hi.

I tested locally and it worked fine, so maybe it is related to to SMTP configuration (I have phpmail).
I have compared Joomdle's email code with Joomla/Hikashop, and it seems there is a difference, Maybe you can try modifying the code to see if solves the issue.
To do it, edit administrator/components/com_joomdle/helpers/shop.php , function send_confirmation_email().
Change:
Code:
if (!$mail_class->sendMail($from, $fromname, $email, $email_subject, $email_text))
By:
Code:
if (!JFactory::getMailer()->sendMail($from, $fromname, $email, $email_subject, $email_text))

I tested the change locally, and it keeps working, so I am hoping it can solve your issue.
Please try and let us know.

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

  • Barry Baronas
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 2 months ago #3 by Barry Baronas
Replied by Barry Baronas on topic Joomdle not sending course email with Hikashop
That appears to have done the trick!

Thanks!

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

More
12 years 2 months ago #4 by Antonio Durán
Replied by Antonio Durán on topic Joomdle not sending course email with Hikashop
Great, thanks for the feedback.
I will include the fix for next release.

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