Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MailDeliveryJob to updates with settings and avoids needing to restart. #2075

Merged
merged 2 commits into from
Nov 28, 2024

Conversation

stuzart
Copy link
Member

@stuzart stuzart commented Nov 25, 2024

Extension of MailDeliveryJob to update smtp settings before running.
Also always start the mailer job, but only send mails if enabled, to avoid having to restart the jobs if enabling email. ( I'm in 2 minds about this and open to reverting it after review. )
Added a note that when queuing a test email, the settings need to have been saved first.

@stuzart stuzart added this to the 1.16.0 milestone Nov 25, 2024
@stuzart stuzart changed the base branch from main to seek-1.16 November 25, 2024 10:08
@@ -55,6 +55,7 @@
<%= link_to '#', id: 'queue-test-email-btn', class: 'btn btn-default' do %>
<%= image("test", title: "Send testing email", alt: "Test")%> Queue test email
<% end %>
<p class="help-block">Note that testing the Queue requires settings to be saved first</p>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps in the future we could make the custom job take an optional hash of SMTP settings to temporarily override the saved settings, so it can be used for testing without needing to save the settings first.

@stuzart stuzart merged commit 8e4a6a6 into seek-1.16 Nov 28, 2024
23 checks passed
@stuzart stuzart deleted the enhanced-maildeliveryjob-2070 branch November 28, 2024 16:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants