xml feeds - can't make them work

dchaidaris

New Member
I tried what the kb article suggests and I change the feed url but the templates don't work for me. (https://kb.mailwizz.com/articles/embed-xml-rss-feeds-into-your-campaign/)

I'm using the latest 1.5.1 version and I can't seem to find the option to enable xml feeds when creating a new campaign. I tried to create a campaign from scratch and paste the template from kb article, replacing the feed url.

When I create a new campaign or template I paste the kb article code as html, change the feed URL, I switch from html to normal view, but the tags are not getting replaced. I also have send some test campaigns/emails and the tags still don't get replaced

I have tried feed urls from different pages. I think i'm doing something wrong...help.
 
Last edited:
Hello, of course:

HTML:
<!DOCTYPE HTML>
<html>
<head>
   <meta http-equiv="content-type" content="text/html" />
   <title>XML FEEDS</title>
</head>
<body>
    [XML_FEED_BEGIN url='https://americansforadvancement.com/feed/' count='5' offset='0']
        <table>
            <tr>
                <td>
                    <a href="[XML_FEED_ITEM_1_LINK]">
                        <img src="[XML_FEED_ITEM_1_IMAGE]" width="100" height="100"/>
                    </a>
                </td>
                <td>
                    <strong>[XML_FEED_ITEM_1_TITLE]</strong><br />
                    <p>[XML_FEED_ITEM_1_DESCRIPTION]</p>
                </td>
            </tr>
        </table>
    [XML_FEED_END]
</body>
</html>
 
Hello, of course:

HTML:
<!DOCTYPE HTML>
<html>
<head>
   <meta http-equiv="content-type" content="text/html" />
   <title>XML FEEDS</title>
</head>
<body>
    [XML_FEED_BEGIN url='https://americansforadvancement.com/feed/' count='5' offset='0']
        <table>
            <tr>
                <td>
                    <a href="[XML_FEED_ITEM_1_LINK]">
                        <img src="[XML_FEED_ITEM_1_IMAGE]" width="100" height="100"/>
                    </a>
                </td>
                <td>
                    <strong>[XML_FEED_ITEM_1_TITLE]</strong><br />
                    <p>[XML_FEED_ITEM_1_DESCRIPTION]</p>
                </td>
            </tr>
        </table>
    [XML_FEED_END]
</body>
</html>

Try to remove that "1"
[XML_FEED_ITEM_1_LINK] => [XML_FEED_ITEM_LINK]
and so on...


HTML:
<!DOCTYPE HTML>
<html>
<head>
   <meta http-equiv="content-type" content="text/html" />
   <title>XML FEEDS</title>
</head>
<body>
    [XML_FEED_BEGIN url='https://americansforadvancement.com/feed/' count='5' offset='0']
        <table>
            <tr>
                <td>
                    <a href="[XML_FEED_ITEM_LINK]">
                        <img src="[XML_FEED_ITEM_IMAGE]" width="100" height="100"/>
                    </a>
                </td>
                <td>
                    <strong>[XML_FEED_ITEM_TITLE]</strong><br />
                    <p>[XML_FEED_ITEM_DESCRIPTION]</p>
                </td>
            </tr>
        </table>
    [XML_FEED_END]
</body>
</html>
[/QUOTE]
 
Hello, I get the same problem. This is a screenshot when i change from source view to normal view:

OsJXJyNxSfuDVzJlPYuhrA.png

i2m5ba
 
Last edited:
Already tried it. I get the same content on a test email or on a test campaign. This is how the email looks on my gmail inbox:

JBkTP4bpR2SJdXToxuH86A.png
 
I still have a problem with this. I have tried with different feed url's from different sites but it doesn't seem to work for me.
 
@dchaidaris - i just ran a test:
Screenshot 2018-01-19 17.07.01.png
So it seems it works just fine. Are you sure your server can access the feed url and there's nothing blocking outgoing connections ?
 
I believe so. You mean to do a curl request to the feed url from my server and see if i get a 200 response? I will check that on the vps where mailwizz is installed in a while but i think that it should work fine.

Do I have to enable xml feeds anywhere in the mailwizz application? Is there maybe a setting that i need to switch on?
 
Code:
root@newsletter:~# curl -I 'https://americansforadvancement.com/feed/'
HTTP/1.1 200 OK
Server: nginx
Date: Fri, 19 Jan 2018 16:32:30 GMT
Content-Type: application/rss+xml; charset=UTF-8
Connection: keep-alive
X-Robots-Tag: noindex, follow
Link: <https://americansforadvancement.com/wp-json/>; rel="https://api.w.org/"
Last-Modified: Wed, 17 Jan 2018 22:34:25 GMT
ETag: "a064f2c47b93c08933f9014cb9ede939"

The server can access the feed url normally. The version 1.5.1 i have currently had been upgraded from 1.4.8 to 1.4.9, 1.5 and now 1.5.1. Maybe i will try a new clean install of 1.5.1.

Thanks for the suggestions
 
@dchaidaris - i am not sure how much a clean install could help, but feel free to try it.
In my tests that i did today this worked, so i am not sure why it fails in your case. But if you really want, you can open a ticket with backend access and ssh access and i can try to debug this for you.
 
Ok, I got my images to show up in my rss feed.
It was an issue with wordpress.

I installed the "Send images to rss" plugin. Configured and it worked.

Now, I am trying set set up the feed options, but I am getting an error.

When I have
url, offset, count, the feed works.

However, when I add :
days-back
and
no-item-action

The feed does not process.

I have an advanced recurring. This campaign will send once weekly.
The feed should check if there are any new posts. IF there is, send the new posts. IF not, postpone.

I set the feed up as follows

[XML_FEED_BEGIN url='http://www.example.com/news/feed/' count='5' days-back='7' no-item-action='postpone-campaign' ]
When I add the code, the feed does not process.

Am I doing anything wrong?

Any help is appreciated.
 
@Amy Cancryn - It's because you only tell it to go 7 days back, and your latest article is 8 days old, thus mailwizz finds no valid post and postpones the campaign for when a new post appears, so mailwizz does exactly what you tell it to do.
 
Back
Top