Skip to content

Releases: influenzanet/messaging-service

v0.9.2: Allow handling of study-reminder emails

08 Apr 10:14
Compare
Choose a tag to compare

Added

  • Email templates can use the language attribute that would contain the preferred language from the user model. Example usage added to the docs.

Changed

  • "Auto email" definitions can contain a label, so that admins can describe the intent for the specific config.
  • Updated dependencies (reflected in go.mod).
  • Email-templates documentation includes new possibilities related to the above changes of this release.

v0.9.1

12 Feb 11:07
Compare
Choose a tag to compare
  • Log error during email template resolving
  • Print only host name when reconnecting

Auto-Message Flow update

08 Nov 21:00
Compare
Choose a tag to compare

Change flow of auto message sending:

  • Step 1: generate message and save to outgoing

  • Step 2: handle outgoing messages

  • auto messages are written to the outgoing by default and not send to the email client directly

  • rename bulk messaging methods (remove async)

  • improve logging and counter logic

  • add method to prepare stream of users for both send methods in bulk messaging

Use filter when asking for user stream

06 Nov 11:32
Compare
Choose a tag to compare
  • bulk message sending is using a filter to only retrieve users for current weekday when trying to send weekly and newsletter types

  • updated dependencies and go.mod to go 1.15

Bulk message sending - synchronously

04 Nov 20:39
Compare
Choose a tag to compare
  • use synchronous message sending for bulk messages
  • print how many emails were processed and duration

v0.8.3: pool close seemed to cause issues - remove for now

14 Oct 08:49
Compare
Choose a tag to compare
  • Improve Outgoing email flow in Message scheduler (delete only if success from email-client and saved to sent emails)
  • remove Closing of pool, since it seems to cause some issues - warning: this may result in increasing memory usage for now

v0.8.2

12 Oct 20:33
Compare
Choose a tag to compare

This release attempts to fix issue when email-sending is not recovering by deleting connection and starting them again.

Configurable Timeout

23 Sep 20:12
Compare
Choose a tag to compare

Both for high prio and low prio server config, need to define a timeout for email sending.

...
- host: test2.example.com
  port: 235
  connections: 2
  sendTimeout: 5
  auth:
    user: testuser2
    password: testpassword2
...

sendTimeout will be interpreted as seconds

Improved handling of outgoing mails and added logging

11 Sep 22:41
Compare
Choose a tag to compare

Breaking change

These new environment variables replace MESSAGE_SCHEDULER_SLEEP_INTERVAL:

MESSAGE_SCHEDULER_INTERVAL_HIGH_PRIO=45 
MESSAGE_SCHEDULER_INTERVAL_LOW_PRIO=1800
MESSAGE_SCHEDULER_INTERVAL_AUTO_MESSAGE=120

The value is interpreted in seconds

Changes

  • extend API to be able to send low prio instant emails
  • method flag to fetch only high prio emails from DB
  • apply retry delay when email sending fails
  • add connection to logging service
  • log relevant user interactions

v0.7.1

06 Sep 19:50
6312a86
Compare
Choose a tag to compare
  • code optimization -> using global constants instead of hardcoded strings
  • functionality remained the same