Afzender met alleen een naam ('Machiel Heinen') wordt 'Naam <inlognaam>' (mail.sender): zonder adres weigerde de ontvangende server het bericht; zelfde afzender in de verstuurde mail in de CRM

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Machiel
2026-10-16 18:06:12 +02:00
co-authored by Claude Opus 5.5
parent 366a3f9d17
commit 8f6e1ab443
2 changed files with 15 additions and 5 deletions
+1 -1
View File
@@ -1487,7 +1487,7 @@ def mail_send():
cid = contact['id'] if contact else None
db().execute("INSERT INTO emails (message_id, direction, contact_id, from_addr, to_addr, cc, subject, body, "
"attachments, date, is_read) VALUES (?, 'out', ?, ?, ?, ?, ?, ?, ?, ?, 1)",
(message_id, cid, get_setting('smtp_from') or get_setting('smtp_user'), to, cc, subject, body,
(message_id, cid, mail.sender(settings_dict()), to, cc, subject, body,
', '.join(name for name, _, _ in files), now()))
if cid:
log(cid, 'email', f'E-mail verstuurd: {subject}')