PHP Login System with Admin Features

Would you like to react to this message? Create an account in a few clicks or log in to continue.
PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


3 posters

    Email admin upon registering

    nichola
    nichola


    Number of posts : 3
    Registration date : 2009-06-02

    Email admin upon registering Empty Email admin upon registering

    Post  nichola Tue Jun 02, 2009 5:34 am

    Hi,

    I have traweled the evolt site forum (as much as I can stand as it has many pages now) and I can't see anywhere the answer to my question.

    When someone registers how do you send a notification email to the administrator. I'm not wishing to implement a member activation, just a simple email to inform the admin that there is a new member on the site. I am already using the welcome email functionality which is working fine.

    I hope you can help, I'm others would want this or have even done it already/

    Many thanks in advance
    Nichola musgrove
    Linchpin311
    Linchpin311


    Number of posts : 220
    Age : 38
    Localisation : Long Island
    Registration date : 2007-05-14

    Email admin upon registering Empty Re: Email admin upon registering

    Post  Linchpin311 Thu Jun 04, 2009 11:56 am

    the easiest way off the top of my head would to be to add the admins email address to the welcome email. this way when the welcome email is sent both the newly registered user and an administrator will get a copy.

    you could also add a line under the welcome mail function to send a new customizable email out to the admin, but this would probably require adding a new function in mailer.php. Not a difficult real task, but i dont know how much you know about this script or about php in general.
    nichola
    nichola


    Number of posts : 3
    Registration date : 2009-06-02

    Email admin upon registering Empty Re: Email admin upon registering

    Post  nichola Fri Jun 05, 2009 4:42 am

    Hi and thanks for your quick reply

    I am now familiar with the code and have customised it with extra fields etc. with no problem. I am by no means an expert, coming from a web design background.

    All I need is to send a copy email to another address, which will be admin (I'll remove the password from the email all together for this). I know it must be an easy thing to do but I can't get it, could you just tell me what to do?

    I would be very gratefull, I have learnt loads by implementing this script.

    Many thanks,
    Nichola
    Apollo
    Apollo


    Number of posts : 9
    Registration date : 2010-03-22

    Email admin upon registering Empty Re: Email admin upon registering

    Post  Apollo Mon Aug 23, 2010 8:28 pm

    I know its late, but heres a simple solution.

    Find this in session.php
    Code:

                if(EMAIL_WELCOME){
                  $mailer->sendWelcome($subuser,$subemail,$subpass);
                }

    And replace it with:
    Code:

                if(EMAIL_WELCOME){
                  $mailer->sendWelcome($subuser,$subemail,$subpass);
               $mailer->sendWelcome($subuser,EMAIL_FROM_ADDR,$subpass);
                }

    Sponsored content


    Email admin upon registering Empty Re: Email admin upon registering

    Post  Sponsored content


      Current date/time is Fri May 17, 2024 6:16 am