Thank you for the kind words. Could you test the unsubscribe function for me? To see if it works? With me there used to be a redirect error.
yurigoul, I added the $UnsubscribeLink to my template and successfully unsubscribed.
The thing that concerns me is that I can simply unsubscribe any email address that I desire (if I guess the correct email) via the link
I presume it is up to us to come up with some kind of unique identifier to check an id and an email address against each other to help secure the unsubscription, or is that built into it somewhere or?
That sounds good!!!!
AFAIK there is no security option there, that is what one of the maintainers told me.
Am not a very good php ninja that knows how to go about adding a better security option (sending a mail you are unsubscribed). I see it more or less as a very lightweight newsletter add-on and if more functionality is needed, I would simply install phplist or something.
But on the other hand you could probably add password functionality easily with extra fields in the subscribe form (password and retype password), add the password + email to the user database and activate the 'only logged in members can see this page' to the unsubscribe page in the back-end. 'Send me my password'-functionality is build into silverstripe (though I have never tested it).
I solved my issues with the saved newsletters not loading in SS 2.3.7 (using Newsletter V0.4) by doing the opposite of one of the suggestions in this topic... sort of! All I needed to do was change SS_HTTPRequest to just HTTPRequest in line 140 of NewsletterAdmin.php.
Obviously I'll need to reverse this once I upgrade to SS 2.4 but happy to stay on 2.3.7 for now.
It also seems to be working fine with the SubscriptionForm page type without needing UserForms installed.
Further good news: the Unsubscribe function appears to be working fine.
I subscribed to the list with one of my many obscure email addresses, checked the Mailing List to confirm subscription had worked, then sent myself a sample email. Email arrived fine, so I then clicked the Unsubscribe link that I had added to the bottom of my email template. This took me back to my site giving me a nice message saying I had now unsubscribed.
I then logged back in as Admin, checked the Mailing List and my test subscription record had been removed. I checked the Unsubscribers tab and sure enough, there was my name and date of unsubscribing.
Anything else I should look for to confirm if things are all working?
Not that I can think off. Thanx!!!!
Apparently unsubscribe works, confirmed in both 2.3 and .24.
For the rest, depending on your Silverstripe version you have to replace certain names in the php files. Look up some of my replies in this thread.
SS 2.3 & Newsletter 0.3:
class NewsletterAdmin, line 138:
Rename HTTPRequest to SS_HTTPRequest.
Or, for compatibilty issues:
if($params instanceof HTTPRequest)
if ($params instanceof SS_HTTPRequest) || $params instanceof HTTPRequest)