• Arshad Siddiqui

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.



subscribe
.rar
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="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">

<?php

include "style.css";

include "subscribemail.php";

?>

<div class="parent-wrapper">

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

<div class="subscribe-wrapper">

<h4>SUBSCRIBE TO OUR NEWSLETTER</h4>

<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="https://www.youtube.com/channel/UCjxWFN0ZGMmXBQP78Nn9dpA/videos" class="fa fa-youtube"></a>

<a href="https://www.instagram.com/_carworld_ferrari/" class="fa fa-instagram"></a>

</div></div>


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


<!DOCTYPE html> <html> <head> <title>subscribe</title> </head> <body> <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></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>





61 views0 comments

Recent Posts

See All