PHPee.com PHP development forum
Send Email Help

 
Post new topic   Reply to topic    phpee.com Forum Index -> PPhlogger Support
View previous topic :: View next topic  
Author Message
epic



Joined: 29 Aug 2004
Posts: 3

PostPosted: Sun Aug 29, 2004 10:40 pm    Post subject: Send Email Help Reply with quote
Hey there, great script like it very much added back links to all my link directories for support.

My question - the emails that are sent out via Change Password and Change anything else, i can't find out how to edit the subject to them. I've searched the forums, saw that inside of /includes/pphlogger_send.inc you can change the subject for welcome email but anything else i am having trouble with.

Can anyone help me with that and let me know which files i am missing so i can edit it?

Thanks,
Bill
Back to top
View user's profile Send private message Visit poster's website AIM Address
sdjl
Moderator


Joined: 17 Nov 2003
Posts: 791
Location: London, UK

PostPosted: Sun Aug 29, 2004 11:29 pm    Post subject: Reply with quote
Line 282, functions.lib.php (located in the libraries directory)
This function:
PHP:
function newPw($username,$email,$newPw = '') {
    global
$admin_mail,$pass_length;
    global
$pw_privacy;
    
    if(
$newPw == '') $newPw = randPw($pass_length);
    
$md5pw = md5($newPw);
    
$sql = "UPDATE ".PPHL_TBL_USERS." SET pw='$md5pw' WHERE username='$username' AND email='$email'";
    
$res = mysql_query($sql);
    if (
mysql_affected_rows()) {
        
$subject = "PPhlogger password change for $username";
        
$headers = getMailheader($admin_mail);
        
$headers .= "X-Priority: 1\r\n";
        if (!
$pw_privacy) $headers .= "Bcc: $admin_mail";
        
mail($email, $subject, "you successfully changed your password.\n\n>>>new pw = $newPw", $headers);
        return
true;
    } else return
false; //no matching email or username
}


David
_________________
-----
Free Logger Accounts | PPHlogger Manual | PM Me
Back to top
View user's profile Send private message Visit poster's website
epic



Joined: 29 Aug 2004
Posts: 3

PostPosted: Sun Aug 29, 2004 11:37 pm    Post subject: Reply with quote
great thank you
Back to top
View user's profile Send private message Visit poster's website AIM Address
Post new topic   Reply to topic    phpee.com Forum Index -> PPhlogger Support All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2.0.8
Theme design based on Team 101 Designs, modified by Philip Iezzi