diff --git a/lemarche/www/conversations/tasks.py b/lemarche/www/conversations/tasks.py index 0688cc74b..9ef747ace 100644 --- a/lemarche/www/conversations/tasks.py +++ b/lemarche/www/conversations/tasks.py @@ -3,6 +3,12 @@ from lemarche.utils.emails import send_mail_async, whitelist_recipient_list +DISCLAIMER_ATTACHMENTS = ( + "\nVeuillez noter que cette conversation email ne prend pas en charge les pièces jointes.\n" + "Pour envoyer un document, un devis ou autre, demandez les coordonnées direct de votre interlocuteur" +) + + def send_first_email_from_conversation(conv: Conversation): siae: Siae = conv.siae from_email = f"{conv.sender_first_name} {conv.sender_last_name} <{conv.sender_email_buyer_encoded}>" @@ -16,7 +22,7 @@ def send_first_email_from_conversation(conv: Conversation): f"{sender_company_name}" f"Ce client vous a contacté via le Marché de l'inclusion. " "Pour échanger avec lui, répondez simplement à cet e-mail.\n" - ) + ) + DISCLAIMER_ATTACHMENTS send_mail_async( email_subject=conv.title, @@ -34,7 +40,7 @@ def send_email_from_conversation( from_email = f"{conv.sender_first_name} {conv.sender_last_name} <{conv.sender_email_buyer_encoded}>" send_mail_async( email_subject=email_subject, - email_body=email_body, + email_body=email_body + DISCLAIMER_ATTACHMENTS, recipient_list=whitelist_recipient_list([conv.sender_email_siae]), from_email=from_email, email_body_html=email_body_html, @@ -45,7 +51,7 @@ def send_email_from_conversation( from_email = f"{siae.contact_full_name} <{conv.sender_email_siae_encoded}>" send_mail_async( email_subject=email_subject, - email_body=email_body, + email_body=email_body + DISCLAIMER_ATTACHMENTS, recipient_list=whitelist_recipient_list([conv.sender_email_buyer]), from_email=from_email, email_body_html=email_body_html,