https://bugs.documentfoundation.org/show_bug.cgi?id=135628
Bug ID: 135628
Summary: SendSimpleMailMessage bodytext ends up as multiple
recipents
Product: LibreOffice
Version: 5.4.7.2 release
Hardware: x86-64 (AMD64)
OS: Linux (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: BASIC
Assignee: [email protected]
Reporter: [email protected]
Description:
When sending email in a macro using sendSimpleMailMessage your bodytext can
only have one row. If you have multiple rows divided with chr$(10) (new line)
all rows ends up as additional recipents.
LibreOffice 4.4.3.2 Base on Linux Mint 17.2 Mate 1.10.2 have not this problem.
LibreOffice 5.1.6.2 Base on Linux Mint 18.3 Mate 1.18.0 have not this problem.
LibreOffice 5.4.7.2 Base on Linux Mint 19.3 Cinnamon 4.4.8 have this problem.
LibreOffice 6.0.7.3 Base on Linux Mint 19.3 Cinnamon 4.4.8 have this problem.
Code:
eMailer = createUnoService("com.sun.star.system.SimpleCommandMail")
eMessage = eMailer.createSimpleMailMessage()
eMessage.Recipient = eMailAdress
eMessage.Subject=eSubject
eMessage.Body=bodytext
eMessage.Attachement=(Array(convertToUrl(filepath)))
eMailer.sendSimpleMailMessage ( eMessage, _
com.sun.star.system.SimpleMailClientFlags.NO_USER_INTERFACE )
System:
LO version 6.0.7.3
CPU threads: 8, OS: Linux 5.4, UI render: default, VCL: gtk3
Locale: sv-SE (en_US.UTF-8)
Linux Mint 19.3 Cinnamon 4.4.8
Steps to Reproduce:
1.Run the code above
2.
3.
Actual Results:
The mail client (tested thunderbird and evolution) opens up. If there is a
chr$10 (new line) in the bodytext no rows are put into the bodytextfield. In
the recipients field the original recipient is inserted and one recipient for
every bodytext-row.
Expected Results:
Only one recipient and all rows of the bodytext in the bodytext field.
Reproducible: Always
User Profile Reset: No
OpenGL enabled: Yes
Additional Info:
-
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs