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

blocked email - brevo - noreply #693

Open
vincentporte opened this issue Jun 25, 2024 · 2 comments
Open

blocked email - brevo - noreply #693

vincentporte opened this issue Jun 25, 2024 · 2 comments
Assignees
Labels
hot fix Pull requests that fix a bug to fix as soon as possible

Comments

@vincentporte
Copy link
Contributor

image

@vincentporte vincentporte self-assigned this Jun 25, 2024
@vincentporte
Copy link
Contributor Author

def send_notifs_when_first_reply():
    first_replies = collect_first_replies()

    for url, subject, emails, display_name in first_replies:
        contacts = [{"email": email} for email in emails]
        params = {
            "url": f"{url}?mtm_campaign=firstreply&mtm_medium=email",
            "topic_subject": subject,
            "display_name": display_name,
        }
        send_email(
            to=[{"email": DEFAULT_FROM_EMAIL}],
            params=params,
            template_id=settings.SIB_FIRST_REPLY_TEMPLATE,
            kind=EmailSentTrackKind.FIRST_REPLY,
            bcc=contacts,
        )

@vincentporte
Copy link
Contributor Author

l'envoi en destinataire à DEFAULT_FROM_EMAIL est un défaut. il devrait être résolu avec #670

@vincentporte vincentporte added the hot fix Pull requests that fix a bug to fix as soon as possible label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hot fix Pull requests that fix a bug to fix as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant