Kontaktformular

Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln
phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Benutzeravatar
DreamPromise
Mitglied
Beiträge: 3793
Registriert: 27.01.2004 17:56

Beitrag von DreamPromise »

Moin Moin

Sorry...hat ne Weile gedauert...hab garkeine Post bekommen das jemand geantwortet hat....

Was solls....

Zum Thema:

Wenn ich auf die Mail antworte steht als Adresse nur der Name der im Formular eingegeben wurde...also keine E-Mail.

Hier mal die beiden Dateien:
kontakt.php

Code: Alles auswählen

<?php

define('IN_PHPBB', true);

$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
$pagecounter = "16";
$page_title = $lang['Kontakt'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$template->assign_vars(array(
'kontakt1' => $lang['kontakt1'],
'kontakt2' => $lang['kontakt2'],
'kontakt3' => $lang['kontakt3'],
'kontakt4' => $lang['kontakt4'],
'kontakt5' => $lang['kontakt5'],
'kontakt6' => $lang['kontakt6'],
'kontakt7' => $lang['kontakt7'],
'kontakt_js1' => $lang['kontakt_js1'],
'kontakt_js2' => $lang['kontakt_js2'],
'kontakt_js3' => $lang['kontakt_js3'],
'kontakt_js4' => $lang['kontakt_js4'],
'kontakt_js5' => $lang['kontakt_js5'],
'kontakt_js6' => $lang['kontakt_js6'])
);

$template->set_filenames(array(
'body' => '../kontakt.tpl')
);

$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
und die kontakt_post.php :

Code: Alles auswählen

<?php


define('IN_PHPBB', true);

$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);

$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);

$page_title = $lang['Kontakt'];
include($phpbb_root_path . 'includes/page_header.'.$phpEx);

$email_from = "$name<$email>";
$email_to = "kontakt@forum-haushalt.de";
$header = "From:$email_from\n";
mail($email_to,$betreff,$textfeld,$header);

if (mail==false){
$false = $lang['kontakt8'];}
else {
$true = $lang['kontakt9'];}

$template->assign_vars(array(
'false' => $false,
'true' => $true)
);




$template->set_filenames(array(
'body' => '../kontakt_post.tpl')
);

$template->pparse('body');

include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
?>
Nun hoffe ich mal das du was sehen kannst .... :D


DP
Antworten

Zurück zu „phpBB 2.0: Mod Support“