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

Setup emailing #5

Merged
merged 10 commits into from
Mar 3, 2024
Merged

Setup emailing #5

merged 10 commits into from
Mar 3, 2024

Conversation

shenanigansd
Copy link
Contributor

@shenanigansd shenanigansd commented Mar 2, 2024

Closes #3

Tested with

@app.post("/test-email/{email_address}", status_code=HTTP_202_ACCEPTED, response_class=Response)
async def test_email(
    email_address: str,
    graph_client: Annotated[GraphServiceClient, Depends(build_graph_client)],   
) -> None:
    await send_mail(
        graph_client=graph_client,
        to_addresses=[email_address],
        bcc_addresses=[],
        subject="Test",
        content="Test",
    )

@shenanigansd shenanigansd self-assigned this Mar 2, 2024
@shenanigansd shenanigansd marked this pull request as ready for review March 2, 2024 23:09
@shenanigansd shenanigansd requested review from jonathan-d-zhang and Robin5605 and removed request for jonathan-d-zhang March 2, 2024 23:09
Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Update src/dragonfly_reporter/mailer.py

Co-authored-by: Robin <[email protected]>
Signed-off-by: Bradley Reynolds <[email protected]>

Condense send_email

Signed-off-by: GitHub <[email protected]>
@shenanigansd shenanigansd requested a review from Robin5605 March 2, 2024 23:55
@shenanigansd shenanigansd enabled auto-merge March 3, 2024 00:47
@shenanigansd shenanigansd merged commit 5142e9e into main Mar 3, 2024
4 of 5 checks passed
@shenanigansd shenanigansd deleted the br/gh3 branch March 3, 2024 00:49
shenanigansd added a commit to vipyrsec/infrastructure that referenced this pull request Mar 5, 2024
shenanigansd added a commit to vipyrsec/infrastructure that referenced this pull request Mar 5, 2024
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.

Add emailing utilities
2 participants