Skip to content

feat: Send welcome mail via SOAP call#11236

Merged
sKarki999 merged 1 commit intoILIAS-eLearning:trunkfrom
sKarki999:feature/trunk_soap_assignCourseMember_welcome_mail
Mar 12, 2026
Merged

feat: Send welcome mail via SOAP call#11236
sKarki999 merged 1 commit intoILIAS-eLearning:trunkfrom
sKarki999:feature/trunk_soap_assignCourseMember_welcome_mail

Conversation

@sKarki999
Copy link
Contributor

@sKarki999 sKarki999 commented Mar 10, 2026

Extends the assignCourseMember() SOAP method to send a welcome email to the member assigned to a course via SOAP.
The "Welcome Mail" setting in the course is respected meaning if disabled, no email is sent.

Expected Behaviour:

  1. Welcome Mail 'ON' in course setting
    via UI: Mail Sent
    via SOAP: Mail Sent

  2. Welcome Mail 'OFF' in course setting
    via UI: No Mail
    via SOAP: No Mail

To test:

curl -X POST http://<ilias-URL>/soap/server.php \
  -H "Content-Type: text/xml;charset=UTF-8" \
  -d '<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:ilUserAdministration">
         <soapenv:Header/>
         <soapenv:Body>
            <urn:assignCourseMember>
               <sid>REPLACE_SID::REPLACE_CLIENT</sid>
               <course_id>REPLACE_COURSE_REF_ID</course_id>
               <user_id>REPLACE_USER_ID</user_id>
               <type>REPLACE_WITH_TYPE</type>
            </urn:assignCourseMember>
         </soapenv:Body>
      </soapenv:Envelope>'

[Feature Request: Already presented in JF and accepted]

@sKarki999 sKarki999 requested a review from GitHamo March 10, 2026 08:29
@mjansenDatabay mjansenDatabay added the php Pull requests that update Php code label Mar 10, 2026
Copy link
Contributor

@GitHamo GitHamo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you very much 👍

@sKarki999 sKarki999 merged commit 190e499 into ILIAS-eLearning:trunk Mar 12, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

improvement php Pull requests that update Php code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants