~ubuntu-branches/ubuntu/maverick/ilohamail/maverick

« back to all changes in this revision

Viewing changes to IlohaMail/conf/new_user.inc

  • Committer: Bazaar Package Importer
  • Author(s): Joerg Jaspert
  • Date: 2004-02-04 13:44:37 UTC
  • Revision ID: james.westby@ubuntu.com-20040204134437-kz8j3ui2qa7oq8z2
Tags: upstream-0.8.12
ImportĀ upstreamĀ versionĀ 0.8.12

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?php
 
2
/********************************************************
 
3
        conf/new_user.inc
 
4
        
 
5
        PURPOSE:
 
6
        Do whatever needs to be done for a new user, that
 
7
        isn't done by the default program.  This might include
 
8
        something like sending them a welcoming email, or
 
9
        upgrading external databases.
 
10
        It can be anything as long as IT HAS NOT OUTPUT.
 
11
        
 
12
        This shouldn't require authentication or any sort of
 
13
        validation that could prevent the user from logging in.
 
14
        Any such processing must be done in conf/custom_auth.inc
 
15
        
 
16
    PRE-CONDITION:
 
17
        $user_name - Login ID
 
18
        $password - Password
 
19
        $host - IMAP Server
 
20
        $error - Don't run if this isn't empty...
 
21
                    ...primary authentication failed.
 
22
    POST-CONDITION:
 
23
        Whatever that needs to be done...
 
24
 
 
25
********************************************************/
 
26
 
 
27
    /***
 
28
        Example:
 
29
        The code below will send a short email to the new user.
 
30
    ***/
 
31
    
 
32
    // $email_address = $user_name."@".$host;
 
33
    // $subject = "Welcome to IlohaMail";
 
34
    // $message = "Hi!\n\n";
 
35
    // $message .= "Welcome to IlohaMail, the best webmail on the net.\n";
 
36
    // $message .= "This program was brought to you by the folks at\n";
 
37
    // $message .= "IlohaMail.org\n";
 
38
    // mail($email_address, $subject, $message);
 
39
?>