-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Take a look at http://www.traum.org.il/dbmail-admin/dbmail-admin-0.3.tar.gz
Might save you some work

+Katriel
On Wednesday 31 March 2004 07:35, James XMS wrote:
> Hi All,
>
>
> I am knocking up a quick php script to add users to DBMail, and i was
> wondering what dbmail-adduser does in terms of adding stuff to mysql when
> it creates a user. So far my script does the following to add a dbmail
> user:
>
>      $db_string = "INSERT INTO users
> (userid,passwd,client_idnr,maxmail_size,encryption_type) VALUES
> ('$frm_username$frm_domain','$frm_passwde','$frm_userlev','$frm_mboxsize','
>$frm_enctype')"; $db_query = mysql_query($db_string) or die ("Error Writing
> To Database");
>
>      $frm_uid = mysql_insert_id();
>
>      $db_string = "INSERT INTO aliases (alias,deliver_to,client_idnr)
>                    VALUES
> ('$frm_username$frm_domain','$frm_uid','$frm_userlev')"; $db_query =
> mysql_query($db_string);
>
>      $db_string = "INSERT INTO mailboxes (owner_idnr,name)
>                    VALUES ('$frm_uid','INBOX')";
>      $db_query = mysql_query($db_string);
>
>
> Am i missing anything?
>
>
> Cheers
> James
>
>
>
>
> --- Msg sent via @Mail - http://atmail.nl/
> _______________________________________________
> Dbmail mailing list
> [email protected]
> https://mailman.fastxs.nl/mailman/listinfo/dbmail

- --
+katriel                                                כתריאל+
pgp key: traum.org.il/gpg.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQFAaztEDWy+Hv/461sRAgNmAKD0J8jHQ7GULm33DsTkb7+P97VYkgCg7QuU
nVVnExHrULHdUEni03pFv8I=
=gxE9
-----END PGP SIGNATURE-----

Reply via email to