raffa69: php mailer in html einbinden

Beitrag lesen

hallo,

habe ein kleines problem.habe eine html seite in die ich einen mailer einbinden will.das will nicht so recht klappen.habe den php mailer von Stefan Münz hier aud dem forum benutzt.könnte sich vielleicht einer von euch,wenn er zeit hat,meinen code angucken?

danke

<?php

$strEmpfaenger = 'info@studiumwahl.de'; $strSubject    = 'Feedback'; $strReturnhtml = 'http://www.teamworxx.com/STUDYNET/PL/index-pl.html'; $strDelimiter  = ":\t";

if($_POST) {  $strMailtext = "";

while(list($strName,$value) = each($_POST))  {   if(is_array($value))   {    foreach($value as $value_array)    {     $strMailtext .= $strName.$strDelimiter.$value_array."\n";    }   }   else   {    $strMailtext .= $strName.$strDelimiter.$value."\n";   }  }

if(get_magic_quotes_gpc())  {   $strMailtext = stripslashes($strMailtext);  }

mail($strEmpfaenger, $strSubject, $strMailtext, "From: ".$strFrom)   or die("Die Mail konnte nicht versendet werden.");  header("Location: $strReturnhtml");  exit; }

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" /> <title>Welcome to Study-Net</title> </head>

<!--[if lt IE 7]> <script language="JavaScript"> function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. {    var arVersion = navigator.appVersion.split("MSIE")    var version = parseFloat(arVersion[1])    if ((version >= 5.5) && (document.body.filters))    {       for(var i=0; i<document.images.length; i++)       {          var img = document.images[i]          var imgName = img.src.toUpperCase()          if (imgName.substring(imgName.length-3, imgName.length) == "PNG")          {             var imgID = (img.id) ? "id='" + img.id + "' " : ""             var imgClass = (img.className) ? "class='" + img.className + "' " : ""             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "             var imgStyle = "display:inline-block;" + img.style.cssText             if (img.align == "left") imgStyle = "float:left;" + imgStyle             if (img.align == "right") imgStyle = "float:right;" + imgStyle             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle             var strNewHTML = "<span " + imgID + imgClass + imgTitle             + " style="" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"             + "(src='" + img.src + "', sizingMethod='scale');"></span>"             img.outerHTML = strNewHTML             i = i-1          }       }    } } window.attachEvent("onload", correctPNG); </script> <![endif]-->

<style type = "text/css">

a:link {color: #FF0000} a:visited {color: #00FF00} a:hover { color:#FF6600} a:active {color: #0000FF}

td.background1 {

border: 1px solid black; border-bottom:none;

}

td.background2 {

border: 1px solid black; border-top:none;

}

div.transbox { width: 800px; height: 700px; background-color:#0066CC; border: 2px solid #0033CC; margin: 30px 50px; filter:alpha(opacity=70); -moz-opacity: 0.7; }

div.background { width: 800px; height: 700px; background-color:none; border: 2px solid #0033CC; img }

img.trans { filter:filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=image src='logo_mvr.png'); background: none; }

img.left2 { float: right; position: relative; background-color:none;

}

img.right { margin-left: 40px; float: left; position: relative;

}

img.png { float: none; position: relative; top: 5; border: ridge 1px #FFFFFF; margin: 20px 20px; }

a:hover img{border: ridge 2px #FFFF00;} a:active img{border: ridge 2px #33FF00;}

h1.go { margin: 40px 40px; font-size:40px; font-weight:bold; color: #FFFFFF; vertical-align:super; white-space: normal; text-shadow:#000000;

font: Georgia, "Times New Roman", Times, serif; }

div.transbox p { margin: 3px 40px; font-size:20px; font-weight:bold; color: #ffffff; vertical-align:super; white-space: normal; line-height: 150% }

div.transbox h2 { margin: 20px 40px; font-size:40px; font-weight:bold; color: #ffffff; vertical-align:super; white-space: normal; }

td.p { white-space:normal; }

</style>

<body bgcolor="#CCFFFF"> <table width="1173" height="1" border="0" align="center" cellspacing="0" >   <tr>     <td width = "134" rowspan="8" height="1" >   </td>     <td width="900" height="1" align="left" nowrap="nowrap" bordercolor="#000000" colspan="5" >  <p align="center" style="margin-top: 0; margin-bottom: 0">  <img border="0" src="../banner.jpg" width="757" height="148"> </td>     <td width = "121" rowspan="8" height="1">   </td>   </tr>   <tr>     <td bordercolor="#000000" width="76" height="1" >  <p class="p" align="center" style="margin-top: 0; margin-bottom: 0">     &nbsp;&nbsp;&nbsp; </p>  <p class="p" align="center" style="margin-top: 0; margin-bottom: 0">     &nbsp;&nbsp; </p>  <p class="p" align="center" style="margin-top: 0; margin-bottom: 0"> &nbsp;</p></td>     <td bordercolor="#000000" width="250" height="1" valign="top" >  <p align="center">     <img border="0" src="kierunki.jpg" width="143" height="112" align="center"></td>     <td bordercolor="#000000" width="290" height="1" valign="top" >  <p align="center" style="margin-top: 0; margin-bottom: 0">         <img border="0" src="aplikacja.jpg" width="193" height="116" align="center"></td>     <td bordercolor="#000000" width="200" height="1" valign="top" >         <img border="0" src="formalnosci1.jpg" width="201" height="122"></td>     <td bordercolor="#000000" width="96" height="1" >  <p style="margin-top: 0; margin-bottom: 0"></td>   </tr>   <tr>     <td bordercolor="#000000" width="76" height="9" >  <p style="margin-top: 0; margin-bottom: 0">  </td>     <td bordercolor="#000000" width="250" height="9" >  <p align="center" style="margin-top: 0; margin-bottom: 0">         <strong>         <font face="Rockwell" color="#000080" style="font-size: 12pt">Wyszukiwarka kierunk&oacute;w</font></strong></td>     <td bordercolor="#000000" width="290" height="9" >  <p align="center" style="margin-top: 0; margin-bottom: 0">           <font face="Rockwell" color="#000080">           <strong>Aplikacja na           studia</strong></font></td>     <td bordercolor="#000000" width="200" height="9" >  <p align="center" style="margin-top: 0; margin-bottom: 0"><strong>               <font color="#000080" face="Rockwell">Formalno</font></strong><b><font face="Trebuchet MS" size="3" color="#000080"><span lang="PL">&#347;</span></font></b><strong><font color="#000080" face="Rockwell">ci i urz</font></strong><span lang="pl"><b><font face="Trebuchet MS" size="3" color="#000080">&#281;</font></b></span><strong><font color="#000080" face="Rockwell">dy</font></strong></td>     <td bordercolor="#000000" width="96" height="9" >  <p style="margin-top: 0; margin-bottom: 0">  </td>   </tr>   <tr>     <td bordercolor="#000000" width="76" height="1" >  <p style="margin-top: 0; margin-bottom: 0"></td>     <td bordercolor="#000000" width="740" height="1" colspan="3" >  <p class="p" style="margin-top: 0; margin-bottom: 0" align="center">     &nbsp;</p>  <p class="p" style="margin-top: 0; margin-bottom: 0" align="center">     <font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; text-decoration:underline">     CHCESZ JAKO PIERWSZY SKORZYSTA</font><u><font color="#FF0000" face="Arial Black" size="2">&#262;</font></u><font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; text-decoration:underline">     Z NASZEJ BEZP</font><u><b><font face="Arial" size="3" color="#FF0000">&#321;</font></b></u><font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; text-decoration:underline">ATNEJ POMOCY?</font></p>  <p class="p" style="margin-top: 0; margin-bottom: 0" align="center">     <font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; text-decoration:underline">     PODAJ </font><u>     <font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; ">     SW</font><b><font face="Arial" color="#FF0000" size="3">&Oacute;</font></b><font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; ">J </font>     </u>     <font face="Rockwell" color="#FF0000" style="font-size: 12pt; font-weight:700; text-decoration:underline">     MAIL:         <form action="<?php print $_SERVER['PHP_SELF']; ?>" method="post">

<p align="center"><input type="text" name="E-Mail" /></dd>

<p align="center">             <input type="submit" value="Wyslij" />             <input type="reset" value="Wyczysc" />             </p>         </form>   <tr>     <td bordercolor="#000000" width="76" height="1" >  <p style="margin-top: 0; margin-bottom: 0"></td>     <td bordercolor="#000000" width="250" height="1" >  <p align="center" style="margin-top: 0; margin-bottom: 0">         <img border="0" src="rowiesnicy2.jpg" width="201" height="137"></td>     <td bordercolor="#000000" width="290" height="1" >  <p align="center" style="margin-top: 0; margin-bottom: 0">         <img border="0" src="praca%20mieszkania2.jpg" width="210" height="129" align="middle"></td>     <td bordercolor="#000000" width="200" height="1" >  <p align="center" style="margin-top: 0; margin-bottom: 0">         <img border="0" src="stypednia.jpg" width="96" height="122" align="top"></td>     <td bordercolor="#000000" width="96" height="1" >  <p style="margin-top: 0; margin-bottom: 0"></td>   </tr>   <tr>     <td bordercolor="#000000" width="76" height="1" >  <p style="margin-top: 0; margin-bottom: 0">  </td>     <td bordercolor="#000000" width="250" height="1" valign="top" >  <p align="center" style="margin-top: 0; margin-bottom: 0"><b>         <font face="Rockwell" color="#000080">R&oacute;wie</font><font face="Trebuchet MS" size="3" color="#000080"><span lang="PL">&#347;</span></font><font face="Rockwell" color="#000080">nicy</font></b></td>     <td bordercolor="#000000" width="290" height="1" valign="top" >  <p align="center" style="margin-top: 0; margin-bottom: 0">               <strong>               <font face="Rockwell" color="#000080">M</font></strong><font face="Rockwell" color="#000080"><strong>ieszkania               / praca studencka</strong></font></td>     <td bordercolor="#000000" width="200" height="1" valign="top" >  <p align="center" style="margin-top: 0; margin-bottom: 0">           <strong>           <font face="Rockwell" color="#000080">S</font></strong><font face="Rockwell" color="#000080"><strong>typendia</strong></font></td>     <td bordercolor="#000000" width="96" height="1" >  <p style="margin-top: 0; margin-bottom: 0">  </td>   </tr>   <tr>     <td bordercolor="#000000" width="912" height="1" colspan="5" >  </td>   </tr>   <tr>    <td width="900"  bordercolor="#000000" height="1" colspan="5"  >    </td>   </tr> </table> </body> </html>