Revision: 3383
Updated Code
at July 31, 2007 13:37 by asteinhaus
Updated Code
<?php
$email = "[email protected]";
/* Absender */
$absender = "Testuser <".$email.">";
/* Rueckantwort */
$reply = $email;
/* Betreff */
$subject = "Kontaktformular";
/* Nachricht */
$message = '
<html>
<head>
<title>BlaBla</title>
</head>
<body bgcolor="#ff4500" link="#FFD700" vlink="#FFD700" alink="#ff7813">
<table width="500" border="0" cellspacing="5" cellpadding="5">
<tr>
<td>
<p>Inhalt der Email</p>
</td>
</tr>
</table>
</body>
</html>
';
/* Baut Header der Mail zusammen */
$headers .= "From: $absender";
$headers .= "Reply-To:$reply";
$headers .= "X-Mailer: PHP/".phpversion()."";
$headers .= "X-Sender-IP: $REMOTE_ADDR";
$headers .= "Content-type: text/html";
/* Verschicken der Mail */
if(mail($email, $subject, $message, $headers)) echo "<tr><td><p>Ihre Nachricht wurde erfolgreich verschickt.</p></td></tr>";
?>
Revision: 3382
Updated Code
at July 31, 2007 13:35 by asteinhaus
Updated Code
<?php
$email = "[email protected]";
/* Absender */
$absender = "Testuser <".$email.">";
/* Rueckantwort */
$reply = $email;
/* Betreff */
$subject = "Kontaktformular";
/* Nachricht */
$message = '
<html>
<head>
<title>BlaBla</title>
</head>
<body bgcolor="#ff4500" link="#FFD700" vlink="#FFD700" alink="#ff7813">
<table width="500" border="0" cellspacing="5" cellpadding="5">
<tr>
<td>
<p>Inhalt der Email</p>
</td>
</tr>
</table>
</body>
</html>
';
/* Baut Header der Mail zusammen */
$headers .= "From: $absender";
$headers .= "Reply-To:$reply";
$headers .= "X-Mailer: PHP/".phpversion().";
$headers .= "X-Sender-IP: $REMOTE_ADDR";
$headers .= "Content-type: text/html";
/* Verschicken der Mail */
if(mail($email, $subject, $message, $headers)) echo "<tr><td><p>Ihre Nachricht wurde erfolgreich verschickt.</p></td></tr>";
?>
Revision: 3381
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 19, 2007 04:36 by asteinhaus
Initial Code
<?php
$email = "[email protected]";
/* Absender */
$absender = "Testuser <".$email.">";
/* Rueckantwort */
$reply = $email;
/* Betreff */
$subject = "Kontaktformular";
/* Nachricht */
$message = '
<html>
<head>
<title>BlaBla</title>
</head>
<body bgcolor="#ff4500" link="#FFD700" vlink="#FFD700" alink="#ff7813">
<table width="500" border="0" cellspacing="5" cellpadding="5">
<tr>
<td>
<p>Inhalt der Email</p>
</td>
</tr>
</table>
</body>
</html>
';
/* Baut Header der Mail zusammen */
$headers .= "From: $absender
";
$headers .= "Reply-To:$reply
";
$headers .= "X-Mailer: PHP/".phpversion()."
";
$headers .= "X-Sender-IP: $REMOTE_ADDR
";
$headers .= "Content-type: text/html
";
/* Verschicken der Mail */
if(mail($email, $subject, $message, $headers)) echo "<tr><td><p>Ihre Nachricht wurde erolgreich verschickt.</p></td></tr>";
?>
Initial URL
Initial Description
Initial Title
Send emails from the web
Initial Tags
email, web
Initial Language
PHP