Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Build a mini interface for sending mails via background job #242

Open
salty-ivy opened this issue Dec 3, 2024 · 1 comment
Open
Assignees
Labels
enhancement New feature or request

Comments

@salty-ivy
Copy link
Collaborator

Summary

Exposing a universal flexible method for sending mails via background job

Description

Building and exposing a universal interface/ function that can be called from other parts of the code base and send mails via background task by default.

Use Case

Easier dev ex, internal code enhancement.

Alternatives

No response

Affected Area

Backend

@salty-ivy salty-ivy added the enhancement New feature or request label Dec 3, 2024
@salty-ivy salty-ivy self-assigned this Dec 3, 2024
@Suraj1089
Copy link
Contributor

As I understood that we can have one background task(async function) which we can call at multiple places to send the email?
Ex.

@app.task
def send_email_in_background(*args):
    # email sending logic. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants