Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature may not be available in some browsers.
<?php
mailto("empfänger","betreff","text","absender")
?>
<html>
<head>
<body>
<form action="email.php" method="post">
Name: <input type="text" name="name">
Text: <textarea name="text"></textarea>
<input type="submit"><input type="reset">
</form>
</body>
</head>
</html>
<?
/* Als erstes
den abgesendeten text einer
variable zu */
$name = $_Post['name'];
$text = $_Post['text'];
//jetzt schreiben wir die mail
mailto("deineMailAdresse","Feedback","$text","$name");
print("Die email wurde erfolgreich versendet");
?>
<html>
<head>
<title>Homepage - Ausfüllformular</title>
</head>
<body>
Bitte füllen Sie das Formular aus, wenn Interesse besteht.
<form action="formular.php" method="post">
Name: <input name="Name"><br>
eMail: <input name="eMail"><p>
<input type="submit" value="Formular senden">
<input type="reset">
</form>
</body>
</html>
<?php
$name = $_Post ['name'];
$email = $_Post ['email'];
mailto("[email protected]","Feedback","$name","$email")
print(Erfolgreich gesendet.);
?>
<?php
$to = '[email protected]';
$subject = 'Feedback';
$message = $_POST ['email'];
$from = $_POST ['name'];
if(@mail($to, $subject, $message, $from))
echo 'Erfolgreich gesendet.';
else
echo 'Fehler beim Senden der E-Mail.';
?>
Es heißt mail(), nicht mailto() ;)PHP:<?php $to = '[email protected]'; $subject = 'Feedback'; $message = $_POST ['email']; $from = $_POST ['name']; if(@mail($to, $subject, $message, $from)) echo 'Erfolgreich gesendet.'; else echo 'Fehler beim Senden der E-Mail.'; ?>