Allwebtuts

Menu
  • Home
  • About us
  • Contact Us
  • Php
  • HTML
  • WordPress
  • Blogger
Home
HTML
Simple PHP Email Subscribe Form – Build Your Email Subscriber List

Simple PHP Email Subscribe Form – Build Your Email Subscriber List

Santhosh veer Last Updated: February 16, 2018 HTML, Php

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

Build an Email Subscriber List by using Firebase

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

  • Bitly URL Shortener PHP Plugin
  • Festival Wishes Web App in PHP

 



Was this article helpful?
Yes, thanks!
Not really
Thanks!

Your feedback helps us improve Allwebtuts.com



1
Share


Related Posts

MSK PHP Referral System – Create Simple user Referral System for blog

MSK PHP Referral System – Create Simple user Referral System for blog

Blogger Sitemap Generator PHP Plugin

Blogger Sitemap Generator PHP Plugin

How to Create a Google URL Shortener Web App in PHP

How to Create a Google URL Shortener Web App in PHP

About The Author

Santhosh veer

Blogger - Web Developer - Open Source Lover

Free Email Updates

Latest Offers

30% OFF - Black Friday
Sample Image

WP Coupons

Increase your Affiliate Product sales
Get This Deal

Join with us

Allwebtuts Copyright © 2023.
Cloudways + Schema Theme + KeyCDN - Privacy Policy - Cookie Policy