Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $to = "pitchoudev7@gmail.com";
- $subject = "HTML email";
- $message = $_POST["message"];
- // Always set content-type when sending HTML email
- $headers = "MIME-Version: 1.0" . "\r\n";
- $headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
- // More headers
- $headers .= 'To: Mary <pitchoudev7@gmail.com>' . "\r\n";
- $headers .= 'From: <'.$_POST["email"].'>' . "\r\n";
- $headers .= 'Cc:pitchoudev7@gmail.com' . "\r\n";
- $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";
- mail($to,$subject,$message,$headers);
- ?>
- <form class="contact-form" method="post" action="form.php" id="contactForm" novalidate="">
- <div class="form-group form-icon-group">
- <input class="form-control" name="name" placeholder="Your name *" type="text">
- <i class="fa fa-user"></i>
- </div>
- <div class="form-group form-icon-group">
- <input class="form-control" name="email" placeholder="Your email *" type="text">
- <i class="fa fa-envelope"></i>
- </div>
- <div class="form-group form-icon-group">
- <textarea class="form-control" name="message" placeholder="Your message" rows="10"></textarea>
- <i class="fa fa-pencil"></i>
- </div>
- <div class="form-group text-center">
- <button class="btn btn-primary btn-icon btn-icon-right" type="submit">
- Send email
- <div class="hex-alt">
- <i class="fa fa-envelope"></i>
- </div>
- </button>
- </div>
- <div id="messages"></div>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement