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

Simplify mail sender API to send synchronously by default

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 6.2-milestone-1
    • 6.1
    • Mail
    • None
    • Integration
    • Unknown

    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

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

            Dates

              Created:
              Updated:
              Resolved: