mail-mit-php-verschicken.php


Quell Code


<div class="col-md-8">
                        <div class="contact-wrap form-style">
                            <h3>Contact Me</h3>
                            <div class="cf-msg"></div>
        <form   enctype="multipart/form-data" method="post" accept-charset="utf-8" id="cf">
                                <div class="row">
                                    <div class="col-sm-6 col-xs-12">
                                        <input type="text" placeholder="Name" id="fname" name="fname">
                                    </div>
                                    <div class="col-sm-6 col-xs-12">
                                        <input type="text" placeholder="Email" id="email" name="email">
                                    </div>
                                    <div class="col-xs-12">
                                        <input type="text" placeholder="Subject" id="subject" name="subject">
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="contact-textarea" placeholder="Message" id="msg" name="msg"></textarea>
                                    </div>
                                    <div class="col-xs-12">
                                        <button id="submit" class="cont-submit btn-contact" name="submit">SEND MESSAGE</button>
                                    </div>
                                </div>
                                <div id="meineid">Text zum testen</div>
                            </form>
                        </div>
                    </div>
   <div id="meineid2">Text zum testen</div>
<?php

//Taking all values
if(isset($_POST['fname'])){
$fname         = $_POST['fname'];
$email         = $_POST['email'];
$subject     = $_POST['subject'];
$msg         = $_POST['msg'];
$output     = "Name: ".$fname."\n\nSubject: ".$subject."\n\nMessage: ".$msg;

$to         = 'basti1012@soforthilfe-forum.de';
$headers    = 'FROM: "'.$email.'"';

$send        = mail($to, $fname, $output."\n\n***This message has been sent from Martxa", $headers);

echo "email wurde gesendet";


}

?>


Deprecated: Directive 'allow_url_include' is deprecated in Unknown on line 0