Skip to content

Add custom email backends.#1132

Merged
bolkedebruin merged 2 commits intoapache:masterfrom
jmcarp:custom-email-backend
Mar 8, 2016
Merged

Add custom email backends.#1132
bolkedebruin merged 2 commits intoapache:masterfrom
jmcarp:custom-email-backend

Conversation

@jmcarp
Copy link
Contributor

@jmcarp jmcarp commented Mar 7, 2016

Allow users to configure a custom email backend using the
EMAIL_BACKEND configuration variable, which accepts a dotted import
path. The backend defaults to the existing send_email helper, which is
renamed to send_email_smtp. This can be used to send email without
using SMTP, e.g. when sending mail via API.

Note: this patch uses importlib instead of the deprecated imp module
which is used elsewhere throughout airflow.

[Resolves #1103]

@jmcarp jmcarp force-pushed the custom-email-backend branch 2 times, most recently from ccaa854 to de75309 Compare March 7, 2016 02:08
@bolkedebruin
Copy link
Contributor

@jmcarp if you dont mind adding the tests in this patch that would be great!

jmcarp added 2 commits March 8, 2016 01:06
Allow users to configure a custom email backend using the
`EMAIL_BACKEND` configuration variable, which accepts a dotted import
path. The backend defaults to the existing `send_email` helper, which is
renamed to `send_email_smtp`. This can be used to send email without
using SMTP, e.g. when sending mail via API.

Note: this patch uses `importlib` instead of the deprecated `imp` module
which is used elsewhere throughout `airflow`.

[Resolves apache#1103]
@jmcarp jmcarp force-pushed the custom-email-backend branch from f97d34e to b14da32 Compare March 8, 2016 06:06
@jmcarp
Copy link
Contributor Author

jmcarp commented Mar 8, 2016

@bolkedebruin tests added! I see that the builds are failing in check-license.sh, but not sure why--other PRs seem to be failing with the same error.

@bolkedebruin
Copy link
Contributor

Tests failing are unrelated to this PR. I need to fix that. Will merge this one.

bolkedebruin added a commit that referenced this pull request Mar 8, 2016
@bolkedebruin bolkedebruin merged commit e73ad44 into apache:master Mar 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants