Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-10641

Simplify mail sender API to send synchronously by default

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2-milestone-1
    • Component/s: Mail
    • Labels:
      None
    • Tests:
      Integration
    • Difficulty:
      Unknown
    • Similar issues:

      Description

      Right now there's only 1 API called send() which sends asynchronously (you need to call waitTillSent() if you wish to wait for the mail to be sent).

      However the main use case is to send a mail synchronously (i.e. wait for it to be sent).

      Thus it's simpler to modify the send() API to send synchronously and introduce a new sendAsynchronously() API to send asynchronously. This saves one method call when sending synchronously.

        Attachments

          Activity

            People

            Assignee:
            vmassol Vincent Massol
            Reporter:
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: