Not sending Confirmation emails to admins

  • Michelle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #1 by Michelle
Moodle 2.2.3
Joomla 2.5.8
Joomdle 0.82
HikaShop 2.1.0

The web admins aren't receiving confirmation emails/notification when a student enrolls in a course. The student gets a confirmation email, but not the admins. The admins do get an email from authorize.net, but nothing from Joomla/Joomdle.

I'm new to Moodle and Joomdle, so sorry if I'm missing something obvious.

Michelle Z.

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

More
13 years 2 months ago #2 by Chris
Replied by Chris on topic Not sending Confirmation emails to admins
Hi Michelle

Embarrassingly, I cannot recall if admins are automatically sent an email too. My gut feel is that emails are only sent to the students at this time. I had a quick look at my demo site and see the option is not available but it is an older version of Joomdle and my test site is currently down. I will need to setup another site over the weekend to confirm for you.

If you need an answer immediately, you can do a search for the email message going out (in the code) to see if it is sent to one or two addresses.

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

  • Michelle
  • Topic Author
  • Offline
  • New Member
  • New Member
More
13 years 2 months ago #3 by Michelle
Replied by Michelle on topic Not sending Confirmation emails to admins
Thank you for responding. I would really appreciate your insight on this so I can get an answer to my client. I'll look into the code, but again, I'm still learning so if you could get back to me after checking your test site, that would be fabulous!

Michelle Z.

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

More
13 years 2 months ago - 13 years 2 months ago #4 by Chris
Replied by Chris on topic Not sending Confirmation emails to admins
Hi there,

I can confirm that Joomdle is not sending an email to admin at this point. Your admin should recieve your email from Hikashop as confirmation and also any gateway confirmations that may come. Eg. I use paypal and I receive from the shop and a receipt from paypal.

You can try playing with the code administrator\components\com_joomdle\helpers\shop.php around lines 1800

if (!JUtility::sendMail($from, $fromname, $email, $email_subject, $email_text))
{
$this->setError('ERROR_SENDING_CONFIRMATION_EMAIL');
return false;
}


and either copy it replace the $email with the email address you want or even send to yourself by inserting $from - this I believe will be your joomla admin defined in global configuration.

Or a simpler and better way would be to change the sendmail function above to include a bcc ... you can refer to this joomla documentation
docs.joomla.org/JUtility/sendMail

Note. I have not tested this as I do not have a mailer on my local PC and thus I am not 100% confident that this is the right location. Antonio would be best to confirm this. If you try on your test site - let me know if this went OK.

Finally:
- Any change here will be over written by the next version of Joomdle. I will place this as a feature request but at the moment, nobody else is asking for it thus has no priority.
Last edit: 13 years 2 months ago by Chris.

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

More
13 years 2 months ago #5 by Jocelyn Garner
Replied by Jocelyn Garner on topic Not sending Confirmation emails to admins
Does Moodle send an enrolment/registration confirmation email to anyone, say a Teacher or a Manager? If so, do you have any idea where that setting might be in Moodle?

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