/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php /* 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-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>"; ?>
Comments
