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:
co-authored by
Claude Opus 5.5
parent
366a3f9d17
commit
8f6e1ab443
@@ -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}')
|
||||
|
||||
Reference in New Issue
Block a user