Feature #1627

email notifications

Added by Giulio Moro almost 9 years ago.

Status:NewStart date:2016-02-22
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

from the webprojects.eecs.qmul.ac.uk help page:
How do I send email from PHP?
You can use the standard PHP mail() function to send email. However

You can only send email to QM email addresses
You can only send email to on erecipient at once
There is a one Megabyte size limit on mail sent
The code to send an email (as an example) is:

<?php
$to      = 'eecsusername@eecs.qmul.ac.uk';
$subject = 'the subject';
$message = 'The body';
$headers = 'Reply-To: eecsusername@eecs.qmul.ac.uk' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>


Now, this might be too QM-specific, but if we put the hooks in there (e.g.: send email notification when someone starts a test or someone ends it, maybe with attached xml (for backup)), then users from other domains can just edit the mail server configuration settings.

Also available in: Atom PDF