top of page

Send the Email Template Localhost xampp Using PHP and CSS

Template Styles allow custom CSS pages to be used to style content without an interface administrator having to edit sitewide CSS. Template Styles make it more convenient for editors to style templates; for example, those templates for which the sitewide CSS for the mobile skin or another skin (e.g. Timeless) currently negatively affects the display of the template.

This Video is how to Send Email template.

Download RAR • 2KB

1. Create Subscribe.php file and past this code.

<meta name="viewport" content="width=device-width, initial-scale=1">

<link rel="stylesheet" href="">


include "style.css";

include "subscribemail.php";


<div class="parent-wrapper">

<span class="close-btn glyphicon glyphicon-remove"></span>

<div class="subscribe-wrapper">


<form action="" method="post">

<input class="input" type="email" id="email" name="email" placeholder="Enter Your Email">

<button class="submit-btn" value="Sign Up" name="sumbit" type="sumbit"> Subscribe</button>

<div id="footer">

<p align="center"> All The Copyrights reserved &copy; Follow us on </p>

<!-- Add font awesome icons -->

<a href="#" class="fa fa-facebook"></a>

<a href="#" class="fa fa-twitter"></a>

<a href="" class="fa fa-youtube"></a>

<a href="" class="fa fa-instagram"></a>


2. Create subscribemail.php file and past this code.

<!DOCTYPE html> <html> <head> <title>subscribe</title> </head> <body> <script src=""></script> <?php if (isset($_POST['sumbit'])) { $email = $_POST['email']; // locate the tamplate html $template_file = "./tamplate.php"; $subject = " subscribe my channel"; $headers = "From: siddiqui arshad "; if (mail($email, $subject, $message, $headers)) { ?><script> swal({ title: "Subscribe", text: "Thank you For Subscribe", icon: "success", button: "Done", }); </script> <?php }else{ ?><script> swal({ title: "Email Sending Failed....", text: "Please Check Your Email", icon: "error", button: "Click", }); </script> <?php } } ?> </body> </html>

69 views0 comments

Recent Posts

See All
bottom of page