Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. Please go to index.html and add this to the form https://tppr.me/5hpI8:
- <form action="mail.php" method="post" id="contactform" class="contact-form">
- 2. After that create mail.php file in the template directory and add this inside of it:
- <?php
- if(isset($_POST['email'])){
- $mailTo = "[email protected]";
- $subject = "mail from web";
- $body = "New message from web
- <br><br>
- FROM: ".$_POST['email']."<br>
- NAME: ".$_POST['name']."<br>
- COMMENTS: ".$_POST['message']."<br>";
- $headers = "To: muziq <".$mailTo.">\r\n";
- $headers .= "From: ".$_POST['name']." <".$_POST['email'].">\r\n";
- $headers .= "Content-Type: text/html";
- //envio destinatario
- $mail_success = mail($mailTo, utf8_decode($subject), utf8_decode($body), $headers);
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment