ich habe mich durchs forum gegraben..und frage mich, ob nicht jemand eine funktionierende kontakt_post.php hat, die er mal uppen kann.
ich habe nun schon eine weile lang versucht, das script anzupassen, jedoch ohne erfolg.....
......................immer fehlt der Absender
kann da jemand vielleicht noch einmal schaue?
oder etwas funktionierende empfehlen...
...irgendwie fegt mich das nicht an , mit den leeren mails...
anbei die php:
Code: Alles auswählen
<?php
/***************************************************************************
* Kontakt Formular von Carsten Schäfer
* ------------------------
* Version : Version 1.00 - 26.04.2003
* copyright : (C) 2003 Carsten Schäfer
* email : cs-mailbox@web.de
*
* $Id: kontakt.php,v 1.00 2003/04/26 Carsten Schäfer $
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
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 = "xxx@xxxx.de";
$header = "From:$email_from\n";
$textfeld=$HTTP_POST_VARS['textfeld'];
$name=$HTTP_POST_VARS['name'];
$mail=$HTTP_POST_VARS['mail'];
$betreff=$HTTP_POST_VARS['betreff'];
mail($email_to,$betreff,$textfeld,$header,$name);
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);
?>