Chatwoot/config/initializers
Sony Mathew d4b3ba4baa [#139] Send conversation emails (#442)
* [#139] Delayed emails for conversations

* Added the setex and get methods to Redis wrapper
* Set the priorities for the sidekiq queues
* Was not able to use mailhog for testing email in local, switched back to letter opener and added comments on using the SMTP settings
* Added after create hood in messages to queue the sending of mail after 2 minutes using sidekiq worker and also set the redis key for the conversation to avoid the email sending for every message
* Added the sidekiq worker to send the email and delete the conversation redis key
* Added the mailer and mail template
* mailer sends the last 10 messages along with the new messages from the time it was queued

* Send email only in development or if smtp config is set

* Send email only in development or if smtp config is set
* Set the SMTP_PORT in production variable

* Adding redis to circle CI

* Specs for the conversation email changes

* Added specs for conversation email sidekiq worker
* Added specs for conversation mailer
* Added specs in message model for the after create hook for notify email

* Send emails only when there is a reply from agent

* set development to use mailhog

* Adding comments for using letter opener
2020-01-23 23:14:07 +05:45
..
00_init.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
application_controller_renderer.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
assets.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
backtrace_silencers.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
bot.rb 🔥Docker and environment variables cleanup (#270) 2019-11-24 01:27:39 +05:30
content_security_policy.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
cookies_serializer.rb Initial Commit 2019-08-14 15:18:44 +05:30
custom_error_codes.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
devise.rb Chore: Ability to configure Mailer sender emails [#339] (#342) 2019-12-03 22:54:08 +05:30
devise_token_auth.rb Initial Commit 2019-08-14 15:18:44 +05:30
event_handlers.rb Refactor Conversation model (#134) 2019-10-12 23:38:41 +05:30
feature_policy.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
filter_parameter_logging.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
inflections.rb Initial Commit 2019-08-14 15:18:44 +05:30
mime_types.rb Initial Commit 2019-08-14 15:18:44 +05:30
new_framework_defaults_6_0.rb Upgrade to rails 6 💎 (#11) 2019-08-19 13:49:57 +05:30
redis.rb [#139] Send conversation emails (#442) 2020-01-23 23:14:07 +05:45
sentry.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
session_store.rb Initial Commit 2019-08-14 15:18:44 +05:30
warden_hooks.rb 🚨Fix Rubocop lint errors 2019-10-20 14:17:26 +05:30
wrap_parameters.rb Initial Commit 2019-08-14 15:18:44 +05:30