Hi
Is it possible to change cuba.email.smtpHost while the application is running?
I neeed to change the smtpHost every time I am sending an email depending on some internal logic.
Thank you,
George
Hi
Is it possible to change cuba.email.smtpHost while the application is running?
I neeed to change the smtpHost every time I am sending an email depending on some internal logic.
Thank you,
George
You should be able to change it using the EmailerConfig
interface. You’d probably want to store the original value and change it back to that when you’re done, though.
Hi,
I posted one ticket myself with similar requirements in the past: SMTP server settings: separate smtp user/password per "from address" · Issue #610 · cuba-platform/cuba · GitHub
Smtp host is now a global setting, and it can’t be changed dynamically depending on conditions.