---
title: "Newloginbox - Forgot Passwort"
url: "https://www.typo3.net/d/65466-newloginbox-forgot-passwort"
source: "typo3.net"
tags: ["Extensions","E-Mail-Versand","Frage","felogin"]
created: "2007-07-19"
last_reply: "2007-07-19"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Newloginbox - Forgot Passwort

Extensions · 1 Antwort · gestartet 2007-07-19

## Eröffnungsbeitrag

**NickD** · 2007-07-19 · [Beitrag #1](https://www.typo3.net/d/65466-newloginbox-forgot-passwort/1)

hallo,

ich habe ein paar verständisschwierigkeiten zum design der passwortemail.
ich möchte gern folgenden text in meiner email haben:

sehr geehrte(r) [NAME],

Ihr Passwort: [PASSWD]

Mit freundlichen Grüßen

NickD

dazu habe ich die locallang.php in /p1/ angepasst:

```php
'forgot_password_pswmsg' => '
Sehr geehrte(r) %s

Ihr Passwort %s

Mit freundlichen Grüßen

NickD
',
```

nun müssen die werte noch eingebunden werden:

```php
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
					'name, password',
						'fe_users',
						sprintf('email=\'%s\' and pid=\'%d\' %s',
						addslashes($workingData['forgot_email'] ),
						intval($spid['_STORAGE_PID'] ),
						$this->cObj->enableFields('fe_users') ) );

					if ($GLOBALS['TYPO3_DB']->sql_num_rows($res ) ) {
						$row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res );
		       
						$msg = sprintf($this->pi_getLL('forgot_password_pswmsg', '', 0),
							$workingData['forgot_email'], $row['name'], $row['password']);
					} else {
					  
						$msg = sprintf($this->pi_getLL('forgot_password_no_pswmsg', '', 0),
							$workingData['forgot_email']);
}
```

zur info: bei mir steht in dem feld "name" vor- und zuname!

leider kommt nur folgende email an:

Sehr geehrte(r) [meine email]

Ihr Passwort [name]

Mit freundlichen Grüßen

NickD

hat jemand eine idee?

lg nick

## Antworten

### [#2](https://www.typo3.net/d/65466-newloginbox-forgot-passwort/2) · NickD · 2007-07-19

Ich habe es nun direkt an die Funktion übergeben ([/d/65475-frage-zu-tslib-cobjsendnotifyemail](https://www.typo3.net/d/65475-frage-zu-tslib-cobjsendnotifyemail)), nun geht es.

---

Quelle: „Newloginbox - Forgot Passwort“, typo3.net, https://www.typo3.net/d/65466-newloginbox-forgot-passwort
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
