@peterbo opened this Issue on March 17th 2011 Contributor

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 commented on March 17th 2011 Contributor

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="Unsubscribe</a">http://example.com/piwik/?module=PDFReports&action=unsubscribe&email=XXX&token=YYY&&idreport=ZZZ">Unsubscribe</a>

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

@peterbo commented on March 17th 2011 Contributor

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 commented on April 28th 2011 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 commented on September 16th 2011 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 commented on September 17th 2011 Member

Considered a bug, increasing priority

@julienmoumne commented on June 5th 2012 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 commented on June 17th 2012 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 commented on June 19th 2012 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 commented on July 27th 2012 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?)

This Issue was closed on August 6th 2018
Powered by GitHub Issue Mirror