Simple PHP Email Subscribe Form – Build Your Email Subscriber List

Simple PHP Email Subscribe Form – Build Your Email Subscriber List


Simple PHP Email Subscribe Form – Simple PHP Plugin Which Helps to Convert our Blog Visitor’s in Email List.
Simple PHP Email Subscribe Form
In this tutorial, we are going to see Method to Create a Simple PHP Email Subscribe Form.This email subscription PHP script helps us to Build an Email Subscribers list For our website & there are a lot of email marketing on the web but this PHP plugin is very Simple & easy to use you can put this on your web blogs, Under construction Website or New Launching website.
when the user’s visit your construction site or new website they view this form, for example, Put a heading like this “Under Construction, we will Back Soon” Please Subscribe to the Email Letter we will alert you by email when our New website launched.

UPDATE

Here is the New Email Subscription Widget by using Firebase Real-time Database
  • Email Subscription Widget Landing Page
  • Store the Users Name & Email on Firebase Real-time Database
  • Easy to Export
Firebase Email Subscription Widget

CREATE SIMPLE PHP EMAIL SUBSCRIBE FORM WIDGET

  • Create a New File index.php
  • Copy and paste this Below HTML Code on index.php
index.php
<form action="subscribe.php" method="post">
<input type="email" name="email" id="email" required placeholder="Enter your email address ">
<input value="Join Now" type="submit">
</form>
  • Next, Create a New File subscribe.php
  • Copy this below PHP Subscribe Form Code & paste it into the subscribe.php file
subscribe.php
<?php
$to = "me@example.com"; // Your Brand Mail ID
$from = "no-reply@example.com"; // Replace it with your From Mail ID

$headers = "From: " . $from . "rn";

$subject = "New subscription";
$body = "New user subscription: " . $_POST['email'];
if( filter_var($_POST['email'], FILTER_VALIDATE_EMAIL) )
{
if (mail($to, $subject, $body, $headers, "-f " . $from))
{
echo 'Your e-mail (' . $_POST['email'] . ') has been added to our mailing list!';
}
else
{
echo 'There was a problem with your e-mail (' . $_POST['email'] . ')';
}
}
?>
That’s all our Simple PHP Email Subscribe Form is ready.Now you can Convert your web blog Visitors into Email Subscribers.
if you are a non-coding guy please feel free to comment here.I will help you to build a Simple PHP Email Subscribe Form.

POPULAR PLUGINS


Comments

Popular posts from this blog

Send PHP E-mail From Gmail SMPT

NewsDog WeMedia - Write smarter, grow faster and earn better

7 Latest Trends In The Logo Designing World