MyMail - Email Newsletter Plugin for WordPress

an advanced plugin to send, manage and track your email campaigns

Item Page Support More Templates

Thank you for purchasing my plugin. If you have any questions that are beyond the scope of this help file, please check out the knowledge base. Thanks so much!

The MyMail Newsletter Plugin for WordPress is an advanced plugin which sends, manages and tracks your email campaigns.

Visit the MyMail Newsletter Plugin Homepage

Features

Requirements

While this explains how to get the plugin running you should consider to check out all features, read this documentation and send test campaigns to get familiar with the plugin and its possibilities.

To get this plugin working you have to follow these steps

  1. extract the download zip
  2. log in to your WordPress site
  3. goto "Plugins" => "Add new" => "Upload"
  4. Select the extracted zip archive "myMail.zip"
  5. Click "Upload" and wait until the file was uploaded and extracted.
  6. Click "Activate Plugin"
  7. Click on "Newsletter" in the menu

Please go to the Settings page and configure the plugin before you start sending your first campaign!

If you have successfully activated the plugin you can create your first campaing like a regular post. Click on "New Campaign" in the "Newsletter" Menu 

The Details

First choose a title for your campaign. The subject could be the same as the title but it's totally up to you.

All templates are prepared for "Preheaders". Please see this section for more info about preheaders.

You can define the senders email address, name and the address people can reply to.

The Template

This how the template looks when you start a new campaign. There's currently no content except the header and the footer part

The Optionbar

The optionbar is divided into 6 buttons:

Adding Content

To add new content you have to add new modules and fill them with content.

Click and select your desired module. It gets appended right before the footer of the newsletter.

You can also add a new module right before an existing module by clicking on the  button on the right.

To rearrange modules drag the modules to the new position or click the up and down  buttons.

To remove a single module click the  button.

To add content simple click on the element. All editable elements are surrounded by a red dotted line:

You can add four types of content:

Automatic insertion

Some modules offer an  button on the right side to insert whole posts including headline, content, button with link to the article and the feature images (if exists)

You can use different type of placeholder tags in your newsletter. Check out this section for more info.

The Options

You can change the colors of your newsletter with the color option on the right. Click the arrows to the right to reset each field or save your newly created color schema to reuse it later.

If you like to set up a background you can select one of the included background in the dropdown. To include your own background just upload them in the myMail directory located at

wp-content/uploads/myMail/backgrounds/

They will get prepended to the dropdown list.

If you don't like to embed images - which reduce the file size - you can uncheck the option as well

Delivery

The Delivery Meta Box is separated into two options: Regular Campaign and Auto responder

Regular Campaign

A Regular Campaign is a campaign which get sent once to each subscriber. The receivers can get defined in the Receivers Meta Box

If you don't check the "Send this Campaign" checkbox you wont be able to send your campaign.

You can define any date in the future or leave the current date to send the campaign immediately when you hit the save button (Please check out the Cron Job section to know how campaigns get sent in MyMail)

To test your campaign with your email client enter your email and hit the send button.

Auto responder

Please check the Auto responder section for more information

All emails will get sent with your servers time! Please check compare your local time with the time at your server

Receivers

On the Receivers Meta Box you can limit the receivers for the current campaign 

You can either send to specific lists or send to all available subscribers (List doesn't matter)

Furthermore you can limit the Receivers by choosing several conditions.

Password protected Web version

To protect the webversion with a password simple add it to the given box. Users are forced to enter this password in order to see the web version

With auto responders you can send campaigns to subscribers after a specific time and after a certain event. There are six types of auto responders available:

  1. Subscriber based auto responder
  2. Action based auto responder
  3. Time based auto responder
  4. User time based auto responder
  5. Follow up auto responder
  6. Action Hook based auto responder

1) Subscriber based auto responders

Subscriber base auto responders a triggered if an event to a specific subscriber occurs. A mail is sent only to a single subscriber if it matches the conditions and is in at least one list.

There are two events when this autoresponder is used

Create a new auto responder

Create a new auto responder campaign like a regular campaign and select the autorespnder tab in the Delivery box

Now you can define when the autoresponder get send after which event. Furthermore you can define some conditions which must be true before the campaign get sent.

In this example the autoresponder campaign get send 30 days after user signed up

You can also check your custom field which you can define on the "Subscriber" tab in the settings.

 

 

 

 

 

 

 

 

 

2) Action based auto responders

Action based auto responders are usefull if you would like to send your latest post to your subscribers right after they get published.

You can send any post type including custom post types.

In this example an new campaign - based on the auto responder - is created after a new Post as been published but only if the post was published in any Category or with any Tag or as any Format which basically means every single post.

Please note that always 2 releases should get skipped. That means that the campaign doesn't get created until you have published the third post with the matching conditions.

You can use the {issue} tag anywhere in your auto responder campaign to count them. This number get increased once a new copy of the campaign has been created.

The counter at the bottom shows the amount of already published posts and is used to calculate the skipped property. You can check the reset counter checkboy and save the campaign to reset the number.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3) Time based auto responders

To send a campaign with an interval (like daily, every week or yearly) you need time based auto responders

4) User Time based auto responders

If you like to send Birthday wishes you have to choose this type of autoresponder.

This autoresponder requires a custom "Date" field

5) Follow Up auto responders

If you like to send a follow up campaign after a subscriber opens a campaign or clicks a link you need this type of auto responder

6) Action Hook auto responders

If you have a custom application and need to send a campaign when a certain event get triggered you can choose this type.

Call the do_action('your_custom_hook') method to trigger this campaign.

You can add the ID of a subscriber to send the campaign only to the passed IDs:

do_action('your_custom_hook', $ID) or

do_action('your_custom_hook', array($ID1, $ID2,...))

Prepare your auto responder

This is how your autoresponder campaign can look like:

You notice many dynamic tas which get replaced when the campaign get sent.

A dynamic tag is wrapped in brackets like the other tags and start with the post type followed by an underscore and the content to display. After a colon can be a negative integer like -3 which represents the third latest entry of the selected post type.

You can also use absolute values like 23 to use the content from the post with the ID 23
relative tag and absolute tag explained

Some examples:

 

Instead of "post_" and "page_" you can use custom post types too

Depending on your delivery date and if you have marked the campaign to delivery, each campaign can have up to five statuses.

Paused

If a campaign was saved without the "Send this campaign" checkbox checked or a running campaign as been paused

Queued

If the campaign is waiting for dispatch

Active

If the campaign is progression or right before to send

Finished

If all newsletters where sent the campaign is "finished" the date shows when the campaign has been finished

Draft

If you duplicate a campaign it's initial status is "Draft"

If you don't have the capability to send campaigns a sixth status is available: "Pending". This requires someone with the right authority to send this campaign

Overview

At the table view of the campaigns you get an overview of your campaigns

The Frontpage displays your newsletter as a "webversion". It provides a top bar with a link to your homepage, the title of the displayed campaign, a next and previous button to display the next or previous campaign (if exists), an optional share button and a button to close the frame.

With the share button users can share the newsletter via different social media services, bookmark services, via email or via link

Create a custom frontpage

You can create a custom frontpage and include it in your themefolder.

copy the single-newsletter.php file located at

wp-content/plugins/myMail/views/single-newsletter.php

to the root directory of your theme folder. Now you can modify the code and add additional stylesheets to the page.

The plugin will automatically choose this template to display the webversion of the newsletter

If you activate the plugin you have to create a new homepage for the newsletter. This page handles subscribes and unsubscriptions.

This page must be linked on the settings page "Frontend"

This is the content of this page:

[newsletter_signup]Signup for the newsletter[newsletter_signup_form][/newsletter_signup]
[newsletter_confirm]Thanks for your interest![/newsletter_confirm]
[newsletter_unsubscribe]Do you really like to unsubscribe?[/newsletter_unsubscribe]

There are four shortcode in use:

[newsletter_signup]

The content of this shortcode is displayed if the user regular visits the page. By default it includes the [newsletter_signup_form] shortcode

[newsletter_signup_form]

This displays the signup form which can be defined on the settings page. You can add and "id" attribute to use a different form [newsletter_signup_form id="1"]

[newsletter_confirm]

This content is displayed if the new subscriber confirms its email address and clicks on the link in the email. 

[newsletter_unsubscribe]

This content is displayed before the unsubscribe form is displayed. The unsubscribe form is a single email input field or only a button if the user clicks the unsubscribe ink from a campaigns newsletter. You can add ?unsubscribe to the URL to see this content

If your campaign is finished or currently progressing you are not able to edit it.

You can expand up to four section to reveal more details:

Total Recipients

Gives you a detailed list of all receivers. Subscribers which haven't received the campaign yet are not included. You can filter the list and define the ordering

Clicks

Overview of clicked links, including amount and percentage starting with most clicked links.

Environment

Overview of used Devices and version. All devices are devided in either Desktop, Mobile or WebClient

Geo Location

Provides an overview of the location where your campaings has been openend *. You can click on an individual country to get the city data (requires track geo lcoations in the settings)

* Geodata is provided by Maxmind.com

 

You can find small boxes  over the links which were clicked. More clicks means a higher percentage.

Tags are placeholder for your newsletter. You can set them anywhere in your newsletter template with the format {tagname}. Custom field tags are induvidual for each subscriber.

You can set alternative content with {tagname|alternative content} which will be uses if [tagname] is not defined. All unused tags will get removed in the final message

Check out the "Tags" Tab on the Settings page!

Dynamic Tags

A dynamic tag is wrapped in brackets like the other tags and start with the post type followed by an underscore and the content to display. After a colon can be a negative integer like -3 which represents the third latest entry of the selected post type.

You can also use absolute values like 23 to use the content from the post with the ID 23
relative tag and absolute tag explained

Some examples:

 

Instead of "post_" and "page_" you can use custom post types too

Reserved Tags

Following tags are reserved and cannot be used as custom tags:

{unsub}, {unsublink}, {webversion}, {webversionlink}, {forward}, {forwardlink}, {subject}, {preheader}}, {profile}, {profilelink}, {headline}, {content}, {link}, {email}, {firstname}, {lastname}, {fullname}, {year}, {month}, {day}, {share}, {tweet}

MyMail Newsletter Plugin allows you to manage subscribers from the Subscribers overview page.

If you activate your plugin you'll find only the first and the last name field for the contacts. The users image is provided by gravatar.com.

To add more custom field you have to open the "subscribers" tab on the newsletter settings page.

 

You can make each custom field required and it will be displayed on the subscription form on your website. Use the tag to use this data in your newsletter.

WordPress Users

MyMail Subscribers and WordPress Users can work closely together in MyMail. There's a dedicate settings page to define all options.

Sync WordPress Users

To keep data of your WordPress Users and your subscribers in sync you can define which fields should get synchronized when data has been updated

You can manually sync them for existing Users/subscribers as well To add Users automatically to you subscribers you have three options

Automatically add new WordPress Users to MyMail

MyMail can add new WordPress Users to your subscribers list

Registered Users

Add the User if he sign ups to your blog via the native registration form provided by WordPress

New Comments

appends a checkbox for users who add a comment to your blog entries

Other

All users added via the backend or with a third party plugin.

If you have a list of subscribers you can simple import them on the "Manage Subscribers" page.

Import Subscribers

You can either upload your CSV file or paste the content directly from Excel into the textarea on the right

 

If you data has been uploaded to your server you get a raw preview of your contacts.

Only the first ten entries and the last one are shown

You can define to which list you like to add the subscribers and the status they get when they are imported. If you choose "pending" all imported contact will receive an opt-in message to confirm their subscription)

If an subscriber already exits you can choose between three options how MyMail handle the import:

Make sure you have the permission to import your email addresses!

After the import has been finished you can see which emails are not imported.

Export Subscribers

You can export all of your subscribers into a CSV file. The file has to be prepared on your server and can take a while before it's accessible.

You can drag and drop the columns to define the order
 

Delete Subscribers

You can delete subscribers one by one or use this bulk delete option. Simple select which lists you would like to empty and click on the Delete Subscribers button. This cannot be undo!

The MyMail Newsletter Plugin comes with a flexible template. To get more templates check out this page

To upload a MyMail compatible template drag the ZIP file into the upload field

 

The subscribption form can be defined on the "Form" tab in the settings.

All forms are cached and comes default classes. Depending on your settings the form markup is this:

<form action="" method="post" class="mymail-form mymail-form-submit" id="mymail-form-X">
    <div class="mymail-form-info">
    </div>
    <div class="mymail-email-wrapper">
        <label for="mymail-email-X">Email <span class="required">*</span></label><input id="mymail-email-X" name="userdata[email]" type="text" value="" class="input mymail-email required" tabindex="1">
    </div>
    <div class="mymail-firstname-wrapper">
        <label for="mymail-firstname-X">First Name</label><input id="mymail-firstname-X" name="userdata[firstname]" type="text" value="" class="input mymail-firstname" tabindex="2">
    </div>
    <div class="mymail-lastname-wrapper">
        <label for="mymail-lastname-X">Last Name</label><input id="mymail-lastname-X" name="userdata[lastname]" type="text" value="" class="input mymail-lastname" tabindex="3">
    </div>
    <div class="mymail-custom-field-wrapper">
        <label for="mymail-custom-field-X">Custom Field</label><input id="mymail-custom-field-X" name="userdata[custom-field]" type="text" value="" class="input mymail-custom-field" tabindex="4">
    </div>
    <div class="mymail-lists-wrapper">
        <label>Lists</label>
        <ul>
            <li><label title="Description"><input class="mymail-list-wordpress-users" type="checkbox" name="lists[]" value="wordpress-users" checked> Wordpress Users
                <span class="mymail-list-description mymail-list-description-wordpress-users">Description</span>
            </label></li>
            <li><label title=""><input class="mymail-list-2nd-list" type="checkbox" name="lists[]" value="2nd-list" checked> 2nd List</label></li>
        </ul>
    </div>
    <div class="mymail-submit-wrapper form-submit">
        <input name="submit" type="submit" value="Subscribe" class="submit-button button" tabindex="5">
    </div>
</form>
Depending on your settings the markup can look different. X is the ID of the form starting from 0.

There are three ways to embed the form:

  1. Use the [newsletter_signup_form id=X] shortcode
  2. Use mymail_form( $id = 0, $tabindex = 1, $echo = true, $classes = '' ); function in your code
  3. Use the included widgets

Preheaders are small phrases (up to 80 letters) which should help increasing your clickthrough rate. Many email clients display the first letters of an email in their preview area.

Preheaders are invisible in the normal email view and show up only in the preview pane of some clients

Examples

Outlook 2007 + 2010

Google Mail

iPhone

Usefull resources

MyMail is internationalized. You can find all available languages on the

POEditor's project page

Participate to improve translations or add your own language to MyMail

Help translating the plugin or add your language in the next update!

Sign up as a translator at poeditor.com

 

1. Insert your email address and name

2. Click the link in the confirmation mail

3. After you have been confirmed you can start translating

Please check out the FAQ page of poeditor as well!

There are some extensions available for MyMail:

All of your campaigns are sent via a cronjob. There are two cron services available:

wp_cron

This is the cron service which is built right into WordPress. If you choose this option you don't have to set up anything else to get your campaign sent. You only have to visit your blog (backend or frontend) regularly to trigger the cron.

Read more about the WordPress cron service here

This type of service is not reccomended for many subscribers!

Real cron service

Much better is a real cron service offerd by your hosting provider.

You have to call a specific URL which looks like:

http://yourwebsite.tld/wp-content/plugins/myMail/cron.php?735f0e3ab63d7d88b9f8dd10539b8a4c

You can find your URL in the Newsletter Settings page within the "Cron" tab

 

You can trigger the cron in three ways:
 
A) open the mentioned link in a browser - which refreshes every x minutes and triggers the job for you
B) let a third part site trigger (which opens the page like your did) which are sometimes free.
C) Tell your provider or host to trigger them for you (same thing but technically slightly different)

There are also some free service out there:

Auto responders  use always the wp_cron service!

You can check for MyMail 2+ with

if(function_exists('mymail'){
    //do stuff with MyMail 2.x
}else{
   //do stuff with MyMail 1.x
}

Adding new subscribers in MyMail 2 works with the "add" method of the subscribers class.

$subscriber_id = mymail('subscribers')->add($entry, $overwrite);

$subscriber_id holds the ID of the inserted subscriber or a WP_Error object if it fails.

$entry can be a single email as string or a assoc array with field => values pairs

$overwrite overwrites the subscriber with the same email if exists

$subscriber_id = mymail('subscribers')->add(array(
    'fistname' => 'John',
    'lastname' => 'Doe',
    'email' => 'john.doe@example.com',
    'status' => 1, //1 = subscribed (default) , 0 = pending, 2 = unsubscribed, 3 = hardbounced
    'custom-field' => 'Custom Value',
    'referer' => 'Your referer' //default = $_SERVER['REQUEST_URI']
    ...
), $overwrite );

To assign lists you can use the assign_lists method like

$success = mymail(‘subscribers’)->assign_lists($subscriber_ids, $lists, $remove_old = false);

$subscriber_ids is either a single id or an array with id’s of subscribers

$lists is either a single id or an array with id’s of lists

$remove_old will remove all assigned lists before assigning the new once $success is boolean

Lists

To work with lists you can use the Lists class with mymail('lists')

Get a list of all lists

$lists = mymail('lists')->get();

a list object look like

( 
   [ID] => 2,
   [parent_id] => 0,
   [name] => 'Wordpress Users',
   [slug] => 'wordpress-users',
   [description] => 'The description',
   [added] => 1411541385,
   [updated] => 1411541385
)

To get a single list add the $ID as first argument:

$my_lists = mymail('lists')->get($ID);

More functions

All functions are prepended with "mymail_"

mymail_option( $option, $fallback = NULL )

returns option $option and fallback if $option isnt set.

mymail_send( $headline, $content, $to = '', $replace = array(), $attachments = array(), $template = 'notification.html' )

send a notification using the current template and the notification.html file. if $to is empty it will get sent to the current user. User $replace to replace tags in your message

mymail_form( $id = 0, $tabindex = 1, $echo = true, $classes = '' )

displays the form with id of $id. returns it if $echo = false. starts first element with $tabindex and add extra $classes to the form element

mymail_subscribe( $email, $userdata = array(), $lists = array(), $double_opt_in = NULL, $overwrite = true, $mergelists = NULL, $template = 'notification.html' )

Subscribes a new user with $email to $lists. $userdata is an array of key-value pairs like 'firstname' 'lastname' and custom fields. If $double_opt_in isn't set explicit the option from the settings is used.

mymail_unsubscribe( $email_hash_id, $campaign_id = NULL, $logit = true )

unsubscribes a user.$email_hash_id can be the email, the hash or the id of the user, $campaign_id can be the id of the campaign to register

mymail_get_campaigns( $args = '' )

returns all campaigns. similar to native get_posts

mymail_get_paused_campaigns( $args = '' )

returns all paused campaigns. similar to native get_posts

mymail_get_queued_campaigns( $args = '' )

returns all queued campaigns. similar to native get_posts

mymail_get_active_campaigns( $args = '' )

returns all active campaigns. similar to native get_posts

mymail_get_draft_campaigns( $args = '' )

returns all draft campaigns. similar to native get_posts

mymail_get_pending_campaigns( $args = '' )

returns all pending campaigns. similar to native get_posts

mymail_get_finished_campaigns( $args = '' )

returns all finished campaigns. similar to native get_posts

Here are some useful snippets to extend the functionality of MyMail:

adding a custom style to every mail

function mystyle_function($color = 'black'){
	return 'a{color:'.$color.' !important}';
}

mymail_add_style('mystyle_function', 'red');

adding a dynamic tags

function mytag_function($option, $fallback, $campaignID = NULL, $subscriberID = NULL){
	return 'My Tag: Option: '.$option."; Fallback: ".$fallback;
}

mymail_add_tag('mytag', 'mytag_function');

use: {mytag:option|fallback}

new error on form submit

function mymail_submit_errors($errors){
	$errors[] = 'new error';
	return  $errors;
}

add_filter( 'mymail_submit_errors', 'mymail_submit_errors' );

adding additional form elements

function mymail_form_fields($fields, $formid, $form){
	$pos = count($fields) - 1;
	$fields = array_slice($fields, 0, $pos, true) +
	array("fieldID" => "Fieldcontent") +
	array_slice($fields, $pos, count($fields) - 1, true) ;
	return $fields;
}

add_filter( 'mymail_form_fields', 'mymail_form_fields', 10, 3 );

You can find the change log online here

mymail.newsletter-plugin.com/changelog

I've used the following images, icons or other files as listed.

Files are maybe not included because of the license


Once again, thank you so much for purchasing this plugin. As I said at the beginning, I'd be glad to help you if you have any questions relating to this theme. No guarantees, but I'll do my best to assist. If you have a more general question relating to the themes on ThemeForest, you might consider visiting the forums and asking your question in the "Item Discussion" section.

Xaver Birsakrevaxarts.com