gip-inclusion / itou-communaute-django

Site de la Communauté de l'Inclusion (version en Django)
https://communaute.inclusion.beta.gouv.fr/
GNU Affero General Public License v3.0
3 stars 1 forks source link

blocked email - brevo - noreply #693

Open vincentporte opened 5 months ago

vincentporte commented 5 months ago

image

vincentporte commented 4 months ago
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 commented 4 months ago

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