ATutor

Learning Management Tools







Pages:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


Email notification


  • 2005-08-24 11:10:07

    Email notification

    G'day,

    Currently we provide our students with an external registration facility. After they pay for a course we register them in ATutor ourselves.

    When the student changes their information in ATutor, we would like to receive email notification so that we can update our records.

    Could you give me some guidance as to how I might approach this? I am a programmer but not familiar with PHP or the structure of ATutor.

    BTW, from what I've seen, this is an excellent product!
    It rivals anything I've found to date.

    thanks,
    Dave

  • 2005-08-24 11:25:08

    .

    what kind of information are you looking to track?

    you can edit users/profile.php

    and add emailing/notification functionality before the redirect.

  • 2005-08-24 11:36:10

    Email notification

    Hi Joel,

    We are intersted in being notified of changes the student\'s profile information.
    (rather than query the database periodically)

    thanks

  • 2005-09-13 11:53:32

    Email Notification

    G'day,

    I added the following code to /users/edit.php to email a profile change notice and it is not working and not giving me an error of any kind.
    Can you tell me what may be wrong?

    //at the top of the page with other includes

    require(AT_INCLUDE_PATH . 'classes/phpmailer/atutormailer.class.php');

    //at line 132 after the update of the new information

    $email_from = "dprice@ngco.com";
    $email_to = "dprice@ngco.com";
    $subject = "Student Change of Information Notice"
    $body = "Student Information (modified):\n\n\n\n";
    $body .= "Last Name: " .$_POST['last_name']. "\n\n";
    $body .= "First Name: " .$_POST['first_name']. "\n\n";
    $body .= "Address: " .$_POST['address']. "\n\n";
    $body .= "Postal Code: " .$_POST['postal']. "\n\n";
    $body .= "City: " .$_POST['city']. "\n\n";
    $body .= "Province: " .$_POST['province']. "\n\n";
    $body .= "Country: " .$_POST['country']. "\n\n";
    $body .= "Phone No.: " .$_POST['phone']. "\n\n";
    $mail = new ATutorMailer;
    $mail->From = $email_from;
    $mail->AddAddress= $email_to;
    $mail->Subject = $subject;
    $mail->Body = $body;
    $mail->Send();

    unset($mail);
    //


    regards

  • 2005-09-15 10:56:21

    .

    does it not generate an error?

  • 2005-09-19 08:26:18

    Email Notification

    I figured it out.
    Thanks.