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


    Email admin upon registering

    Share
    avatar
    nichola

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

    Email admin upon registering

    Post  nichola on 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
    avatar
    Linchpin311

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

    Re: Email admin upon registering

    Post  Linchpin311 on 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.


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    nichola

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

    Re: Email admin upon registering

    Post  nichola on 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
    avatar
    Apollo

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

    Re: Email admin upon registering

    Post  Apollo on 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

    Re: Email admin upon registering

    Post  Sponsored content


      Current date/time is Sun Oct 22, 2017 4:56 pm