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


    Welcome Mail BCC

    Share
    avatar
    jack

    Number of posts : 3
    Registration date : 2010-03-23

    Welcome Mail BCC

    Post  jack on Tue Mar 23, 2010 6:30 pm

    Hi,

    Great Script with some good features.

    Was wondering if it is possible BCC the welcome mail to Admin to let them know a new user has registered.

    Any help would be appreciated,

    Thnaks Jack
    avatar
    Linchpin311

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

    Re: Welcome Mail BCC

    Post  Linchpin311 on Tue Mar 23, 2010 10:58 pm

    a pretty easy fix...

    first make sure you have set your welcome mail to send when a new user is registered than check out mailer.php. Inside there find the send welcome function. Find the first line in that function (line 25 if you havent made any changes to the file) and directly under that line add this new line:
    Code:
    $from .= "\r\nBcc: ADMIN@EMAIL.COM";
    This line adds on a bcc to the additional headers in the php mail function. Of course change ADMIN@EMAIL.COM to your real admin email address.

    The php mail function is actually pretty robust while being quite simple to implement. for more info on the php mail function, follow the link.


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

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

    Number of posts : 3
    Registration date : 2010-03-23

    Re: Welcome Mail BCC

    Post  jack on Wed Mar 24, 2010 12:21 pm

    Thanks for the prompt reply,
    Works perfectly.

    Thanks Jack

    Sponsored content

    Re: Welcome Mail BCC

    Post  Sponsored content


      Current date/time is Tue Sep 19, 2017 9:31 am