Skip to content

version 3

Choose a tag to compare

@tenij000 tenij000 released this 28 Apr 23:12
· 4 commits to main since this release

I have added the mail server functionality as requested. This includes:
1.
Configuration Settings: Added new email preferences (EmailPrefs) to store SMTP server details (host, port, user, password, auth, and StartTLS).
2.
Automatic Sending: Implemented EmailWorker, a background task using WorkManager that automatically sends queued emails using the configured SMTP server.
3.
Real-time Triggering: Updated the mesh data handler to automatically enqueue the email worker whenever a new email request is received and queued.
4.
User Interface:
◦
Added an Email Settings screen to configure the SMTP server.
◦
Added a Settings button to the Email Queue screen.
◦
Added a Test Email feature to verify the configuration.
5.
Persistence: Ensured settings are persisted using DataStore and integrated with the app's preference system.
6.
Startup Integration: Scheduled the email worker to run periodically on app startup if the email gateway is enabled.
The app can now automatically process email requests (e.g., recipient | subject | content) received over the mesh network and send them via the specified SMTP server.