Chore: Ability to configure Mailer sender emails [#339] (#342)

* Chore: Ability to configure Mailer sender emails [#339]

fixes : #339
fixes : #330

* update the documentation
This commit is contained in:
Sojan Jose
2019-12-03 22:54:08 +05:30
committed by Pranav Raj S
parent a8e8416d48
commit 6a2f4e6673
7 changed files with 13 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
class ApplicationMailer < ActionMailer::Base
default from: 'accounts@chatwoot.com'
default from: ENV.fetch('MAILER_SENDER_EMAIL', 'accounts@chatwoot.com')
layout 'mailer'
# helpers

View File

@@ -1,5 +1,5 @@
class AssignmentMailer < ApplicationMailer
default from: 'accounts@chatwoot.com'
default from: ENV.fetch('MAILER_SENDER_EMAIL', 'accounts@chatwoot.com')
layout 'mailer'
def conversation_assigned(conversation, agent)