2017 © Pedro Peláez
 

mautic-plugin mautic-rss-to-email-bundle

image

raow/mautic-rss-to-email-bundle

  • Tuesday, June 19, 2018
  • by chris-raow
  • Repository
  • 4 Watchers
  • 14 Stars
  • 217 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 7 Open issues
  • 5 Versions
  • 61 % Grown

The README.md

Mautic RSS to E-mail

Description

The Mautic RssToEmailBundle is a Mautic plugin that allows you to generate e-mails from a RSS-feed., (*1)

Purpose

Send out an e-mail with for example to latest posts of your blog., (*2)

Compatibility

This plugin has been tested with Mautic versions 2.x, 3.x and 4.x., (*3)

Features

  • Set the number of posts you want to display
  • Create a custom template for the items in the feed
  • Use images from the feed
  • Format dates
  • Reverse view

Installation

  1. Download the plugin from github
  2. Move / Upload folder to the plugins directory. Name the folder MauticRssToEmailBundle
  3. In the Mautic GUI, go to the gear and then to Plugins.
  4. Click on the "Install/Upgrade Plugins" button
  5. You should now see the "Rss To Email" in your list of plugins.

Usage

Use the "code mode" slot of the froala/grapejs e-mail editor. In the content of the slot set to following content:, (*4)

{feed url="<<FEEDURL>>"}
    {feeditems}
        <h3>{feeditem:title}</h3>
        <p><small>{feeditem:date format="d-m-Y H:i"}</small></p>
        <p>{feeditem:description}</p>
        <p><img src="{feeditem:image}"></p>
    {/feeditems}
{/feed}

This should give a basic setup to start with., (*5)

The following tags can be used in the {feed} block:

  • {feedinfo:title}
    Returns: title of the feed, (*6)

  • {feedinfo:url} Returns: url of the feed, (*7)

  • {feedinfo:description} Returns: description of the feed, (*8)

The following tags can be used in the {feeditems} block:

Optional param:

  • Batch mode, (*9)

    By default batch-mode will be enabled. This means that the feed-tags will only be replaced once per batch. When you disable batch-mode, the feed will be parsed for every single e-mail. So if you have a list of 1000 addresses, the feed will be requested 1000 times. Because of the high number of requests in a short timeframe it could cause the server where the feed is on to go down. So handle with care!, (*10)

    {feed batch="0"} - Will DISABLE batch-mode on the feed., (*11)

  • Count
    {feeditems count="3"} - Returns only the first N items from the feed, (*12)

  • Offset
    {feeditems count="3" offset="2"} - Skips the first N items from the feed, (*13)

  • Reverse
    {feeditems reverse="1"} - Returns resuls in reversed view, (*14)

  • Shuffle
    {feeditems count="3" shuffle="1"} - Returns results in shuffled (random) view, can be used in combination with the count parameter, (*15)

Merge tags:
* {feeditem:title}
Returns: title of the post, (*16)

  • {feeditem:link}
    Returns: link to the post, (*17)

  • {feeditem:content}
    Returns: summarized content (desciption), when description is not available it will return the full content, (*18)

  • {feeditem:content_full}
    Returns: full content of the post, (*19)

  • {feeditem:content_text}
    Returns: summarized content (desciption), when description is not available it will return the full content. Tags are stripped., (*20)

  • {feeditem:content_full_text}
    Returns: full content of the post stripped of tags, (*21)

  • {feeditem:description}
    Returns: summarized content (desciption) of the post, (*22)

  • {feeditem:date}
    Optional param: format {feeditem:date format="d-m-Y H:i"}
    Returns: summarized content (desciption) of the post, (*23)

  • {feeditem:author}
    Returns: author name of the post, (*24)

  • {feeditem:categories}
    Returns: comma seperated list of the categories, (*25)

  • {feeditem:image}
    Returns: url of the image. Will check the enclosere and media tags of the xml., (*26)

  • {feeditem:custom:KEY}
    Returns: value of custom field in RSS feed., (*27)

    To use this functionality you have to:, (*28)

    1. Add this to the xmlns definitions in your RSS-feed: xmlns:mautic="https://www.mautic.org/rss/mautic/", (*29)

      For example:, (*30)

      <rss version="2.0"
      xmlns:content="http://purl.org/rss/1.0/modules/content/"
      xmlns:wfw="http://wellformedweb.org/CommentAPI/"
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:atom="http://www.w3.org/2005/Atom"
      xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
      xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
      xmlns:mautic="https://www.mautic.org/rss/mautic/">
      
      <channel>
      ...
      
    2. Add the custom field to your RSS-feed with the following syntax:
      <mautic:location>New York</mautic:location>, (*31)

    3. Inside your mail template use the following tag:
      {feeditem:custom:location}, (*32)

Icon

Icons made by Freepik from www.flaticon.com

The Versions

19/06 2018

dev-master

9999999-dev

  Sources   Download

The Requires

 

by Chris Schrijver

19/06 2018

1.2

1.2.0.0

  Sources   Download

The Requires

 

by Chris Schrijver

07/05 2018

v1.1

1.1.0.0

  Sources   Download

The Requires

 

by Chris Schrijver

12/02 2018

v0.1

0.1.0.0

  Sources   Download

The Requires

 

by Chris Schrijver

12/02 2018

v1.0

1.0.0.0

  Sources   Download

The Requires

 

by Chris Schrijver