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);
?>
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);
?>

DP