mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-25 06:11:11 +00:00
Merge pull request #531 from sharelatex/sk-allow-explicit-ses-email-config
Instantiate the ses client if explicitly specified.
This commit is contained in:
commit
586d1f1599
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ client =
|
||||||
logger.log options:options, "Would send email if enabled."
|
logger.log options:options, "Would send email if enabled."
|
||||||
callback()
|
callback()
|
||||||
|
|
||||||
if Settings?.email?.parameters?.AWSAccessKeyID?
|
if Settings?.email?.parameters?.AWSAccessKeyID? or Settings?.email?.driver == 'ses'
|
||||||
logger.log "using aws ses for email"
|
logger.log "using aws ses for email"
|
||||||
nm_client = nodemailer.createTransport(sesTransport(Settings.email.parameters))
|
nm_client = nodemailer.createTransport(sesTransport(Settings.email.parameters))
|
||||||
else if Settings?.email?.parameters?.sendgridApiKey?
|
else if Settings?.email?.parameters?.sendgridApiKey?
|
||||||
|
|
Loading…
Reference in a new issue