# Sandgrid for Moodle - integration plugin

Transform your Moodle experience with our Moodle LMS plugin that seamlessly integrates Moodle with the powerful Sandgrid application. Elevate your eLearning environment with personalized enrollment emails tailored to each student.

{% embed url="<https://youtu.be/fvwRBNaPOC0>" %}

## **Instructions:**

#### **Step 1: Enabling your Skylms Moodle-Sandgrid plugin**

* After you have installed our Moodle - Sandgrid plugin click on continue.
* You will get to the plugin setup page where you will need to insert your Skylms license key.  If you have not received the key by email after purchasing the plugin - contact us at **<info@skylms.io>**&#x20;

<figure><img src="/files/fI06p5V8Sl4h2SNgeeD3" alt=""><figcaption></figcaption></figure>

#### **Step 2: Create your Sandgrid email enrollment template**&#x20;

Got to the Sandgrid website and opened a free account. Register and log in. &#x20;

<figure><img src="/files/R03sfRh5c9Uf09TK5FEi" alt=""><figcaption></figcaption></figure>

* After login, from your dashboard open the settings tab on the sidebar and select "mail settings".
* Under "Legacy Template Settings" click on the edit icon of "Legacy Emaiil Template"

<figure><img src="/files/vcRI5q58Z9ndixTlzrT2" alt=""><figcaption></figcaption></figure>

* Enable the template and save.&#x20;

<figure><img src="/files/Ekfl75O7rKN1jZNDWqkY" alt=""><figcaption></figcaption></figure>

* once saved navigate to the Email API tab on the sidebar and select Legacy Templates.
* create a new template bay add its name and save. &#x20;
* click on the Add Version button.

<figure><img src="/files/qr7hOT7XUfeLIgP5DmRA" alt=""><figcaption></figcaption></figure>

* In the side popup, select the editor you like to work with and click on the continue button.&#x20;

<figure><img src="/files/cIk9DXs0SZV06KIhFVSG" alt=""><figcaption></figcaption></figure>

* On this page, you need to design your email.&#x20;
* On the settings tab have your template name and email subject.
* Click on build and add content such as images, text, links, and more. if you like to have instructions about the email design options Sandgrid has to offer, check out the Sandgrid guide for email editing.&#x20;

Add a text box and type the following:&#x20;

```
{moodle_enrolment_notif}
```

This tag will set your Moodle email content for your course participant.  select the location you like your content to show in.&#x20;

when done, click on save and go back to the dashboard.&#x20;

<figure><img src="/files/X4YqhveaFf7LxjF5zpho" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Note:** The enrollment email contains dynamic values such as Course name, Student name, Enrollment date, and many Moodle values. The dynamic content will be set in the Moodle plugin settings page as explained in the following step 4. &#x20;
{% endhint %}

#### Step 3: Creating Sandgrid API key

* On Sandgrid go to settings and click on the Create API Key button.&#x20;

<figure><img src="/files/mGevWoOTTTBPXveStxyM" alt=""><figcaption></figcaption></figure>

* On the side, the popup inserts the API name, select Full Access, and click on the Create and view button.&#x20;
* click on the key for copy and then click on done.&#x20;

<figure><img src="/files/c0PXX4j4M21IXCxgEnoh" alt=""><figcaption></figcaption></figure>

#### Step 4: Connecting the Sandgrid account to Skylms enrollment plugin

* After installing the Skylms plugin and setting the Licence Key. in the plugin settings page add the sender email and name of the sender.&#x20;
* click on the Add Sandgrid key button and paste your key into the popup key field. After 3 seconds you will see your template email in the dropdown selection. select your template and save.&#x20;

<figure><img src="/files/iqiGr0NVNxxV91DVRyUf" alt=""><figcaption></figcaption></figure>

* After selecting your Sandgrid template it is time to edit your dynamic message. Use the Tags for course name, student name, and more Moodle tags.&#x20;
* the message you set will be implemented in the location for the Sandgrid template on the tag location:

  ```
  {moodle_enrolment_notif} 
  ```
* Save your settings and you are set to go!

<figure><img src="/files/jHNCfOP6BK77xmOK5NZB" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Note: your enrollment Moodle emails are now sent out from Sandgrid. we recommend having a paid account suitable for your email needs. For [Sandgrid plans](https://sendgrid.com/en-us/pricing) to visit their site.&#x20;
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://skylms-io.gitbook.io/products-guide/sandgrid-for-moodle-integration-plugin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
