Releases: influenzanet/messaging-service
v0.9.2: Allow handling of study-reminder emails
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
Auto-Message Flow update
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
-
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
- 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
- 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
Configurable Timeout
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
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