< Back to Posts

Mail Subscribe List Plugin for WordPress


This is a simple plugin that allows visitors to enter their name and email address on your website.

The visitors details are then added to the subscribers list, which is available to view and modify in the WordPress admin area.

This plugin can be used not only for Mailing List subscriptions but also generally for collecting email addresses and/or people names that are visiting your website.

The name/email form can not only be customised but can also be displayed on any WordPress page by using either the 'Subscribe Widget', WordPress shortcode[smlsubform] or from your WordPress theme by calling the php function.

I developed this plugin as I could not find any plugin that simply allows users to submit their name and email address to a simple list viewable in the WordPress admin. All of the plugins that I found had lots of extra features such as 3rd party integration, mass emailing and double opt-in, but my clients do not need any of these features.

Extra Options

I have developed some customisable options that allow you to change the way the plugin is displayed.

Below is an explanation of what each option does:-

  • "prepend" -> Adds a paragraph of text just inside the top of the form.
  • "showname" -> If true, this will show the name label and input field for capturing the users name.
  • "nametxt" -> Text that is displayed to the left of the name input field.
  • "nameholder" -> Text that is displayed inside the name input box as a place holder.
  • "emailtxt" -> Text that is displayed to the left of the email input field.
  • "emailholder" -> Text that is displayed inside the email input box as a place holder.
  • "showsubmit" -> If true, this will show the submit button, return required to submit form.
  • "submittxt" -> Text/value that will be displayed on the form submit button.
  • "jsthanks" -> If true, this will display a JavaScript Alert Thank You message instead of a paragraph above the form.
  • "thankyou" -> Thank you message that will be displayed when someone subscribes (will not show if blank).

Extra Options - How to Use (Short Code Method)

Short codes can be used simply putting the code into your wordpress page, here is an example of the shortcode in use.

[smlsubform prepend="" showname=true nametxt="Name:" nameholder="Name..." emailtxt="Email:" emailholder="Email Address..." showsubmit=true submittxt="Submit" jsthanks=false thankyou="Thank you for subscribing to our mailing list"]

Extra Options - How to Use (PHP Method)

The PHP method can be used by putting the following PHP code into your WordPress theme, here is an example of php code for your template.

$args = array( 
  'prepend' => '', 
  'showname' => true, 
  'nametxt' => 'Name:', 
  'nameholder' => 'Name...', 
  'emailtxt' => 'Email:', 
  'emailholder' => 'Email Address...', 
  'showsubmit' => true, 
  'submittxt' => 'Submit', 
  'jsthanks' => false, 
  'thankyou' => 'Thank you for subscribing to our mailing list' 
); 

echo smlsubform($args);

You can get the plugin here from the WordPress Website

Let's make something great together!

If you'd like to discuss your next project with us, please feel free to give us a call on 01827 781 311 or press the "Start My Project" button to get in touch for a quick quote.

Start My Project