Display an image in the user notification emails of facetoface plugin

Re: Display an image in the user notification emails of facetoface plugin

από Davo Smith -
Αριθμός απαντήσεων: 0
Φωτογραφία Core developers Φωτογραφία Particularly helpful Moodlers Φωτογραφία Peer reviewers Φωτογραφία Plugin developers
If the file was inside the Moodle files API, then it is not surprising that attempting to get the file contents via file_get_contents($imageurl) wouldn't work.

If you are accessing a file via the URL, then Moodle will apply security checks to see if the user requesting the file has access to it - file_get_contents() would not include any sort of session cookie to identify the request as coming from a logged in user, so the request would be denied.