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

Emails : finaliser la configuration d'envoi d'-mails transactionnels avec Brevo #1033

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

raphodn
Copy link
Contributor

@raphodn raphodn commented Jan 9, 2024

Quoi ?

Lié à #1028

La configuration actuelle fonctionne mais ne permettait pas d'envoyer des e-mails transactionnels à la manière de Mailjet.

J'ai aussi modifié le DEFAULT_FROM_EMAIL & DEFAULT_FROM_NAME

@raphodn raphodn self-assigned this Jan 9, 2024
@raphodn raphodn changed the title Email : finaliser la configuration d'envoi d'-mails transactionnels avec Brevo Emails : finaliser la configuration d'envoi d'-mails transactionnels avec Brevo Jan 9, 2024


ENV_NOT_ALLOWED = ("dev", "test")
def get_default_client():
Copy link
Contributor Author

@raphodn raphodn Jan 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

je me rends compte qu'il y aura surement des conflits avec #1028

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed !

Copy link
Contributor

@SebastienReuiller SebastienReuiller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

params=variables,
)

if settings.BITOUBI_ENV not in ENV_NOT_ALLOWED:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est fait comme ça partout, mais je pense qu'on peut avoir une réflexion sur ce ENV_NOT_ALLOWED, pour peut-être le centraliser dans le settings et l'inverser pour éviter les erreurs (ENV_ALLOWED).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en effet !

@raphodn raphodn force-pushed the raphodn/emails-brevo-configuration branch from 846d7c4 to 80a4509 Compare January 16, 2024 12:24
@raphodn raphodn merged commit 48ad13e into master Jan 16, 2024
4 checks passed
@raphodn raphodn deleted the raphodn/emails-brevo-configuration branch January 16, 2024 15:05
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