Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Subscriptions plugin e-mails formatting
Avatar
Patrick DUMOLEYN
Member
sp_UserOfflineSmall Offline
May 11, 2016 - 11:16 am

Hello.

I use Simple:Press version 5.6.6 with Subscriptions plugin version 1.4.18.

When a post is created, the users that have subscribed on the forum receive an e-mail w/o any formatting.

Have a look to the images joined : the post and the e-mail received.

Any idea ?

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 11, 2016 - 11:33 am

Sorry... Images?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Patrick DUMOLEYN
Member
sp_UserOfflineSmall Offline
May 11, 2016 - 12:23 pm

Sorry, I forgot to click on "Start Upload".

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 11, 2016 - 12:33 pm

Well - my first thought and instinct is that forum posts - like WP blog posts - are stored in the database as html formatted. So is this not just that the email client, in this case, is disallowing and stripping out the html tags?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Patrick DUMOLEYN
Member
sp_UserOfflineSmall Offline
May 18, 2016 - 3:47 am

The problem was due to the plugin I used to send e-mails. I now use another one and the problem is solved.

But it remains a little other problem : empty lines are added in the e-mail sent when the post is updated.

Please, have a look on attached document.

Thanks.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2016 - 4:37 am

Can you explain further what you mean by 'updated'? If you mean 'edited' then subscriptions does not send an email for an edited post (I am pretty sure). But I do not believe that the post you have shown in the pdf has been edited anyway. So not sure what you mean by updated...?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Patrick DUMOLEYN
Member
sp_UserOfflineSmall Offline
May 18, 2016 - 4:54 am

I mean creating a new post or adding a reply to an existing one.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
May 18, 2016 - 5:32 am

OK - understood. I have to really go back to my point above (#4). The content of a post is sent to the subscription email formatted identically to the way it appears in the forum display. So each paragraph is surrounded by html paragraph tags as you would expect. There is no other formatting or processing of the text.

What it looks like is happening from the image, is that extra paragraph tags - or probably an extra 'br' line break tag, is being added at the end of each paragraph. That could happen if the text is parsed by code that is unaware that the text it is parsing is already formatted and ready to go.

This is not common behaviour of either the WP Mail handling or the Simple:Press mail output so there has to be a third party influence. Whatever it is, it would be useful if you could turn off the extra formatting/filtering stage. I would suggest that the first thing to do is try the subscription email with no other email plugins active to see what happens then.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625