Moodle send email for inactivity - moodle

How can I create an API to send an email to the user when they don't connect on moodle after 15 days?
I searched a plugin but I didn't find anything, I also searched how create an API with laravel or symfony to be able to send the emails but i didn't find anything,

You could use the ad-hoc database query plugin to get the student engagement data from the logs, and then set the report so that it automatically runs each day and emails someone/a system the results. Then that person/system could create the required emails.

Related

Moodle Auto attendance is not working as expected

I am trying to get notification/email when user logged in and access the course. I am getting emails after I login as admin/teacher and click on block auto attendance than it will send around 40+ emails at a time to my email id. Instead I want when user login it should send me email.
I have tried to add file_put_contents($CFG->dirroot."/blocks/autoattend/file_name.txt","some text",FILE_APPEND) But still I am not able to find out this file. Cron is working fine but seems cron function of this plugin is not calling.
How to get email notification when someone login? How can I debug cron?
I installed auto attendance block and auto attendance mod. Document says auto attendance mod has cron, so updated that file to but when student start learning on course it must send email of attendance.

Retrieving Azure AD Invitation Redemption URL after-the-fact

We have a Powershell script that creates some guest users using the New-AzureADMSInvitation cmdlet, and its return value has a handy-dandy InviteRedeemUrl property that we include in a nice welcome email to the user to get them started with setting their account up and using our application. This works fine when inviting individual or small numbers of users.
However, we'll need to do this for many users, and carefully control when the emails go out, and I can't see any other way of retrieving this URL after-the-fact... the only option seems to be the "Resend invitation" button on the guest user in AD, which sends a Microsoft-branded email from "Microsoft Invitations" with the redeem URL, which is kind of a problem... For marketing reasons we need to put the invite redeem URL in our own welcome email, so we don't want Microsoft sending out those emails.
Is there any way to retrieve or calculate that invitation URL after the guest user had already been invited? I know I could delete and recreate the invitation itself, but that's still a manual process and I'd like to be able to create guest users in bulk first, and then retrieve those URLs in bulk once we're ready to send out emails. Especially since Azure AD itself seems to be able to fetch the redeem URLs later on via the "Resend invitation" button.
Alternatively , you can think of adding you company branding in the verification and invitation mails in azure AD.
Here is something similar you can find:-
https://learn.microsoft.com/en-us/azure/active-directory-b2c/active-directory-b2c-faqs#how-do-i-customize-verification-emails-the-content-and-the-from-field-sent-by-azure-ad-b2c
Basically you need to change the company branding in Azure active directory to have your custom logo and text.
Hope it helps.
We ended up modifying the AD invitation script to store the InviteRedeemUrl value in our CRM as a field on the customer record. Then later on when our Marketing team wants to start their email campaigns, they could include a reference to this field in the email template just like they would any other field. This way, we got all our analytics on click/open rates and retained complete control over the emails, including where each batch was being sent from (so customers could reply to the correct support staff member for their segment).

Ejabberd: How to limit the fetching of jabber user directory (JUD)

I'm developing a client jabberd application for mobile(android) using (a)Smack.
Since, in my application, the users are registered by their phone numbers, the application should be able to recognize which contact has a jabber account on the server and suggest him/her for chatting.
After googlling the web I found that there is a jabber user directory (JUD) which I can use to check there is an account for a specific mobile number or not. (I'm using UserSearchManager).
My questions:
1- It seems that there is no record in JUD for a user who has not updated his vCard yet, so I cannot find him. Is there any solution to check the existence of this kind of users?
2- It seems that by using JUD, everyone outside of my application can fetch some important information of users such as mobile numbers, emails, etc. Is there any solution to limit JUD search engine? (for example, getting only "user field" as a input and returning only "full name field" of existing accounts or other useful limitation).
So by this way, I can recognize which person from the contact list has an account on the server and also other people cannot fetch important information of the exiting users.
Any command or advice is appreciated. Thank you.
I do not think it is possible as default, without customizing ejabberd application code.

auto sending mails by server at specific intervals

I am looking for some code, which I could send mails out of my website.
I want the user's registered in my website, to be able to automatically send emails at specific time, that's defined by the user. I need a triggering mechanism in asp.NET such that it fires the exact date & time as specified by the user
Any suggestions/approach apart from the above statement is also welcomed.
I have found a solution for the problem, and would kindly request the moderators to delete the post.
Thank you
Asp.Net is not the correct framework to perform scheduled tasks.
You can use Asp.Net for a web interface in which you allow the users to create "tasks", set the timed intervals and even the content of the emails.
BUT - The process which sends the emails should probably be done using a task scheduler...
Here is a post to point you in the right direction...

Sending scheduled emails that include Bugzilla "reports"

hi i am new to Bugzilla.
I intend to send scheduled emails that include report created by me.
I do realize there is something to include search results in the email, using the 'Whining' feature provided in the admin section, and I am currently using that.
But is there a way to send Reports that are in the tabular or graph style? These emails are intended to be sent to the Business team and they dont care about the Title or Description of the bug, all they care is about how many products have how many bugs and what priority.
i am able to generate the report as per their liking, but unable to figure out how to inlcude that data in a scheduled email
It is not currently possible to send reports via email, although is it a long standing request. See https://bugzilla.mozilla.org/show_bug.cgi?id=35281