Bug 170450 - Crash during mail merge via email
Summary: Crash during mail merge via email
Status: RESOLVED DUPLICATE of bug 162677
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
25.2.7.2 release
Hardware: x86 (IA32) Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-01-23 12:07 UTC by georg.frenzel
Modified: 2026-01-23 12:13 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description georg.frenzel 2026-01-23 12:07:25 UTC
When sending serial letters via email, sending to multiple email addresses (separated by ‘;’) does not work.

Apart from that, I get the following error if the individual email address in the underlying Calc file is formatted as a hyperlink. The specific error message is:

<class 'email.errors.HeaderWriteError'>: folded header contains newline: 'To: \n@#.com\n', traceback follows
  File "C:\Program Files\LibreOffice\program\mailmerge.py", line 335, in sendMailMessage
    self.server.sendmail(sendermail, truerecipients, msg.as_string())
  File "C:\Program Files\LibreOffice\program\python-core-3.10.19\lib\email\message.py", line 158, in as_string
    g.flatten(self, unixfrom=unixfrom)
  File "C:\Program Files\LibreOffice\program\python-core-3.10.19\lib\email\generator.py", line 118, in flatten
    self._write(msg)
  File "C:\Program Files\LibreOffice\program\python-core-3.10.19\lib\email\generator.py", line 201, in _write
    self._write_headers(msg)
  File "C:\Program Files\LibreOffice\program\python-core-3.10.19\lib\email\generator.py", line 235, in _write_headers
    raise HeaderWriteError(
Comment 1 m_a_riosv 2026-01-23 12:13:38 UTC
Please if you are not agree, reopen it.

*** This bug has been marked as a duplicate of bug 162677 ***