Go Back   Oxyscripts Forums > phpUserLogin > phpUserLogin Mods
User Name
Password

Reply
 
Thread Tools Display Modes
  #1  
Old 13th December 2002, 08:39
lurzuazo lurzuazo is offline
Member
 
Join Date: 9th December 2002
Location: Spain
Posts: 44
Default Send mail after register

I guess it's a good idea to send an email to you and the new user after filling the register form, here is some code i made it works for me but maybe is a more simple way to do it.

Here is the code in case some body want it:

in line 653 add this code:

if ($error >= 0) {
//send mail to you//
mail("your@email.com",
"Access request - New User",
"<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>Access request <strong>Protected
Zone</strong> Revisar...</font></p>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>Details:</font></p>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>User name: <strong>".$this->_systemOutVar['REG']['username']."</strong><br>
Password: <strong>".$this->_systemOutVar['REG']['password']."</strong><br>
email: <strong>".$this->_systemOutVar['REG']['email']."</strong></font></p>",
"From: <".$this->_systemOutVar['REG']['email'].">\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
}
if ($error >= 0) {
//send mail to new user//
mail("".$this->_systemOutVar['REG']['email']."",
"Access request - In process...",
"<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif><strong>your Company inc.</strong></p>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>Access request <strong>Protected
Zone</strong> esta en proceso...</font></p>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>Your request:</font></p>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>Username: <strong>".$this->_systemOutVar['REG']['username']."</strong><br>
Password: <strong>".$this->_systemOutVar['REG']['password']."</strong><br>
email: <strong>".$this->_systemOutVar['REG']['email']."</strong></font></p>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>we will check your request to <strong>Protected Zone</strong>.</font></p>
<font size=1 face=Verdana, Arial, Helvetica, sans-serif>If you need help contact <a href=mailto:your@mail.com>your@mail.com</a><br>
or call <strong>1-800-123456</strong>.</font>
<p><font size=1 face=Verdana, Arial, Helvetica, sans-serif>Thanks.</font></p>",
"From: <your@email.com>\n" .
"MIME-Version: 1.0\n" .
"Content-type: text/html; charset=iso-8859-1");
}
Reply With Quote
  #2  
Old 13th December 2002, 13:24
Drakxter Drakxter is offline
Senior Member
 
Join Date: 22nd February 2002
Posts: 1,557
Default

Looks good.

Just a note: This will only work for version 1.4.0 (Also most likely the next version to, but there the line number may have changed.)
Reply With Quote
  #3  
Old 23rd March 2003, 01:27
PAX Gamers PAX Gamers is offline
Junior Member
 
Join Date: 23rd February 2003
Location: Cincinnati
Posts: 27
Default

What appears before you add this in? Because I dont have the current version, but the one before. Thanks. 8)
__________________
****://www.paxgamers.com
Reply With Quote
  #4  
Old 23rd March 2003, 22:41
Drakxter Drakxter is offline
Senior Member
 
Join Date: 22nd February 2002
Posts: 1,557
Default

Please read what I said.

This can not be used in version lower then 1.4.0
Reply With Quote
  #5  
Old 24th March 2003, 00:03
PAX Gamers PAX Gamers is offline
Junior Member
 
Join Date: 23rd February 2003
Location: Cincinnati
Posts: 27
Default

Oh, my bad. Sorry. ops:
__________________
****://www.paxgamers.com
Reply With Quote
  #6  
Old 3rd September 2004, 03:59
IllegalFunction IllegalFunction is offline
Junior Member
 
Join Date: 3rd September 2004
Posts: 6
Default

Greetings,
I've come to a point where I needed a user management system for
some of the areas on some of my domains. I tried to reserect one I made
a l*o*n*g time ago. But it was for php3 and is going to take awhile. Anyway,
I ran across phpUserLogin2 and am using v.1.48. To the point... I like your
Email response code idea. As a matter of fact, my old one has this
incorporated in it. Actually, it requires the registering individual to Confirm
their registration by responding to a confirmation Email that is sent to the
Email they provided. Would this be of interest to phpUserLogin? I really
like phpUserLogin and am greatful it was there when I needed it. I plan to
add the confirmation Email to the copy of phpUserLogin I'm using now. But
thought you might want to make it part of the package. I also use a more
*uncrackable* hash in my old user administration system.
I would be happy to share that as well when I bring it up to
current PHP standards.

Anyway, good work and if your interested, please let me know.
__________________
SUN ruins PHP -
now PHP5 sux!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


     

Site Map
All times are GMT. The time now is 05:19.


Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright (c) Oxyscripts 2001-2007
Top Sponsor

Sponsors