Skip to content

Expose link share email template through APIs #29937

Closed

Description

@PVince81

Provide a way for clients to retrieve the email template through public APIs.

  1. Public API endpoint to retrieve preformatted email template with filename, expiration date as input

  2. Public API endpoint to send out email with body (tech debt from ajax/share.php which needs to be moved anyway, see Sharing 2.0 internals #22209)

This is a follow up of #29935.

I suggest providing a new OCS Share API endpoint for that.

Note that only plain text messages are supported. Not sure if we should support HTML emails as it would require clients and web UI to provide basic formatting.

@michaelstingl @felixheidecke @pmaier1

Activity

  1. added this to the development milestone on Dec 20, 2017
  2. self-assigned this
    on Dec 20, 2017
  3. PVince81 commented on Dec 20, 2017

    @PVince81
    ContributorAuthor

    Also not discussed so far: email subject ?

  4. PVince81 commented on Dec 20, 2017

    @PVince81
    ContributorAuthor

    The email endpoint could potentially be abused to send non-share-related emails to anyone... I don't like this. We could force it to have at least the share id, but still...

  5. PVince81 commented on Dec 20, 2017

    @PVince81
    ContributorAuthor

    No, this feature is not really about sending invitation emails.
    It's about adding email recipients to an existing link share (see "grouped tickets" concept #29938). So the API endpoint would simply be the same like the one that allows you to add more recipients to the link share, with the option of specifying a personal note. The endpoint will then send an email.

    When adding a recipient I'd expect the share id of the original share to be specified.

  6. michaelstingl commented on Dec 20, 2017

    @michaelstingl

    Also not discussed so far: email subject ?

    For "1. Public API endpoint to retrieve…" subject should be retrieved from oC server too. If I share a link with my mobile mail client, subject will be used. If I share a link with a messaging application, only the body will be used.

  7. PVince81 commented on Dec 21, 2017

    @PVince81
    ContributorAuthor

    @michaelstingl good point. Indeed mobile will use the local mail client, so the subject should be available too.

    • include subject in template response
  8. SamuAlfageme commented on Dec 21, 2017

    @SamuAlfageme

    Could be used to solve owncloud/client#6196

  9. SamuAlfageme commented on Dec 21, 2017

    @SamuAlfageme

    Duplicates Hackweek's #29769 maybe?

  10. pmaier1 commented on Dec 21, 2017

    @pmaier1
    Contributor

    For #29935 I would also be happy with just "injecting" a note to the notification mail. Not 100% sure if users want to edit the whole template there or if oC should just provide an option to insert a personal note to an existing template (and templates can be edited elsewhere, e.g. templateeditor).

  11. modified the milestones: development, on Jan 12, 2018
  12. PVince81 commented on Mar 13, 2018

    @PVince81
    ContributorAuthor

    moving to planned

  13. modified the milestones: development, on Mar 13, 2018
  14. removed their assignment
    on Mar 13, 2018
  15. pmaier1 commented on Mar 14, 2018

    @pmaier1
    Contributor

    We don't need to make the full template editable but the API should be capable of injecting a personal note as in the WebUI #29696.

  16. PVince81 commented on Apr 24, 2018

    @PVince81
    ContributorAuthor

    moving to triage. personal note is implemented in 10.0.8

  17. modified the milestones: development, triage on Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions