Skip to content

Loading…

PDFReports - Add possibility to unsubscribe from the "mailing list" #2197

Open
peterbo opened this Issue · 9 comments

4 participants

@peterbo

I received some emails with this feature request since they were not able to switch off the email reports (probably via the additional email-addresses field). And they were not even able to determine, who had set up this reports.

Possible solutions

  • Unsubscribe Link in the Reporting eMails
  • Provide information about the user who set up the report (e-Mail-Address, etc. - so the receiver can quickly get in contact with him)

Any thoughts on this?

@robocoder

The unsubscribe link should be doable using something like the password reset email where the token is a hash of the receiver's email + salt, e.g.,

<a href="http://example.com/piwik/?module=PDFReports&action=unsubscribe&email=XXX&token=YYY&&idreport=ZZZ">Unsubscribe&lt;/a>

The only downside is where the email address is actually a mailing list / alias for multiple recipients.

@peterbo

Indeed, this would be not good.

At least the system should send an unsubscription message then, that the other list owners are also notified. Then the piwik admin must enter the single email-addresses seperately in the additional receivers input field instead of the mailing list address.

If a user is the only one recipient of the Report, should the report then be disabled or should this unsubscription be possible then at all?

@mattab
Piwik Open Source Analytics member

I prefer the other proposal: put in the email, something like
This Email report was scheduled by $login ($email)
and only put this sentence, if the user is different from the user being emailed. thoughts?

(strange I didn't get emails for this ticket, or maybe it was in spam and is now deleted after 30 days...)

@mattab
Piwik Open Source Analytics member

Peter proposals are good, in fact I think both solutions are needed to properly solve this issue 1) tell who setup the report 2) allow to "unsuscribe" ie. only remove this one email address from the report

@mattab
Piwik Open Source Analytics member

Considered a bug, increasing priority

@JulienMoumne
Piwik Open Source Analytics member

I am currently performing a lot of refactoring on the PDFReport plugin as part of #3088 and #2708.

Since I am currently dedicated in improving scheduled reports I would like to own this ticket.

Is this ok Peter?

@JulienMoumne
Piwik Open Source Analytics member

After reading all comments, I found two pending questions :

  • should we send a confirmation mail after successfully unsubscribing an e-mail address? As mentioned in comment:2, this would solve the mailing list issue.

  • what happens when the last recipients is removed from the report? I took care of this issue in r6478 by replacing the 'send now' button by 'This report has no recipients'. The report is still downloadable and editable.

@mattab
Piwik Open Source Analytics member

Replying to JulienM:

  • should we send a confirmation mail after successfully unsubscribing an e-mail address? As mentioned in comment:2, this would solve the mailing list issue.

+1 to email-confirm the unsuscribe

  • what happens when the last recipients is removed from the report? I took care of this issue in r6478 by replacing the 'send now' button by 'This report has no recipients'. The report is still downloadable and editable.

Great!

@mattab
Piwik Open Source Analytics member

For example currently one of the reports I receive is in German. I know I've tested German language while logged in, but I didn't know the account. Displaying which user scheduled the report will greatly help (display Login + Alias?)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.