Revision 921
Added by doc almost 16 years ago
signup2.php | ||
---|---|---|
115 | 115 |
$message = $database->get_error(); |
116 | 116 |
} else { |
117 | 117 |
// Setup email to send |
118 |
$mail_subject = 'Your login details...'; |
|
119 | 118 |
$mail_to = $email; |
120 |
$mail_message = ''. |
|
121 |
'Hello '.$display_name.', |
|
119 |
$mail_subject = $MESSAGE['SIGNUP2']['SUBJECT_LOGIN_INFO']; |
|
122 | 120 |
|
123 |
Your '.WEBSITE_TITLE.' login details are: |
|
124 |
Username: '.$username.' |
|
125 |
Password: '.$new_pass.' |
|
121 |
// Replace placeholders from language variable with values |
|
122 |
$search = array('{LOGIN_DISPLAY_NAME}', '{LOGIN_WEBSITE_TITLE}', '{LOGIN_NAME}', '{LOGIN_PASSWORD}'); |
|
123 |
$replace = array($display_name, WEBSITE_TITLE, $username, $new_pass); |
|
124 |
$mail_message = str_replace($search, $replace, $MESSAGE['SIGNUP2']['BODY_LOGIN_INFO']); |
|
126 | 125 |
|
127 |
Your password has been set to the one above. |
|
128 |
|
|
129 |
If you have received this message in error, please delete it immediately.'; |
|
130 |
|
|
131 | 126 |
// Try sending the email |
132 | 127 |
if($wb->mail(SERVER_EMAIL,$mail_to,$mail_subject,$mail_message)) { |
133 | 128 |
$display_form = false; |
Also available in: Unified diff
Mail text for register, signup and forgot mail now taken from WB language file (ticket #684)