[Libreoffice-bugs] [Bug 135628] SendSimpleMailMessage bodytext ends up as multiple recipients
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Mon Feb 15 07:06:21 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=135628
Zeke <pj at precisionsdetaljer.se> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEEDINFO |UNCONFIRMED
Ever confirmed|1 |0
--- Comment #9 from Zeke <pj at precisionsdetaljer.se> ---
New test with LO7.
New clean install of Linux Mint 20.1 Cinnamon.
sudo add-apt-repository ppa:libreoffice/ppa
Upgrade LO to latest fresh.
Assign an account to Thunderbird and test it so it can send email.
Run this code:
sub send_email(filepath as String, eMailAdress as String, yourOrderno as
String)
Dim eSubject as String
Dim eMailer as Object
Dim eMailClient as Object
Dim eMessage as Object
Dim bodytxtstring as string
eSubject = "Delivery note your order " & yourOrderno
bodytxtstring="Please find delivery note attached" & chr$(10) & "as pdf." &
chr$(10) & "Best Regards ..."
eMailer = createUnoService("com.sun.star.system.SimpleCommandMail")
eMessage = eMailer.createSimpleMailMessage()
eMessage.Recipient = eMailAdress
eMessage.Subject=eSubject
eMessage.Body=bodytxtstring
eMessage.Attachement=(Array(convertToUrl(filepath)))
eMailer.sendSimpleMailMessage ( eMessage, _
com.sun.star.system.SimpleMailClientFlags.NO_USER_INTERFACE )
end sub
Result in Thunderbird:
From: zxc at gmail.com
To: vbn at gmail.com
To: Please find delivery note attached
To: as pdf.
To: Best Regards ...
Subject: Delivery note your order 254456
Bodytext: (Nothing)
The bug seems to still be present in LO7.
Due to the bug we use the following code instead:
eSubject = "Delivery note " & deliveryID & " from your order no " & yourOrderno
shellstring="thunderbird -compose subject=" & eSubject & ",to=" & eMailAdress &
",message=/home/user1/Businessystem/txt/Deliveryconftxt,attachment='" &
filepath & "'"
shell shellstring
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210215/f62fb01e/attachment.htm>
More information about the Libreoffice-bugs
mailing list