Apache OpenOffice (AOO) Bugzilla – Issue 35994
API: cmdmail.SimpleCommandMail
Last modified: 2013-02-24 21:09:59 UTC
This component is not available on windows. This is ok sicne SimpleCommentMail works only on UNIX. The UNO-API-Tests must be modified.
In this code sample (Linux, OOo 2.0.1): oServiceMail = createUnoService("com.sun.star.system.SimpleCommandMail") oMail = oServiceMail.querySimpleMailClient() oMessage=oMail.createsimplemailmessage() files (0) = "file://..." files (1) = "file://..." oMessage.setAttachement(files()) The created mail (kmail show up) contain *only 1* attached file. SimpleSystemMail (Windows 2.0.1) works fine with the same source code. How can we attach more than 1 file to a mail on Linux ? is this a bug ? Should i create a new issue ?
Hello, I tryed it also on a Linux Fedora Core 4, with OOo 2.0.1 and 2.0.2 and can confirm this problem. Note : There is a bug with Thunderbird 1.5 (not due to OOo) Here is the entire example (in Florent's example, an line was missing) : Sub Main print "Start" ' oServiceMail = createUnoService("com.sun.star.system.SimpleCommandMail") oServiceMail = createUnoService("com.sun.star.system.SimpleCommandMail") 'oServiceMail = createUnoService("com.sun.star.system.SimpleSystemMail") if isNull( oServiceMail ) then print "Null" else print "Not Null" end if oMail = oServiceMail.querySimpleMailClient() oMessage=oMail.createsimplemailmessage() URL1 = "/home/pagalmes/cdcatalog.xml" URL2 = "/home/pagalmes/devdays.pdf" Dim files(2) As Variant files( 0 ) = ConvertToURL( URL1 ) files( 1 ) = ConvertToURL( URL2 ) 'files (1) = "file://" oMessage.setAttachement( files() ) oMail.sendSimpleMailMessage( oMessage, 0) print "End" End Sub
accepted
Any news? This has an impact for extension developers, resulting in extexsions not independant from the OS (works on Windows, not on linux, Solaris...). As issue 68596 is being corrected for 2.4, maybe this one could be also processed.
cn->pagalmes: this issue is used only for the test case for SimpleCommandMail. If you have problems with the implementation (functionality) please file a new issue. It is not possible for me to fix the implementation since I am not the correspond developer.
cn : I just created issue 82660 to follow this.
added mci to CC
change owner
reassign
Could this be thunderbird bug/feature dependent [as well]? I run Thunderbird 6 and LO3.6 on linux mint here and when I thunderbird -compose "to=me@gmail.com,subject=LO3attachments,Body=Attached,attachment='file:///tmp/monkey.odt',attachment='file:///tmp/monkey-1.odt'" then TB opens a compose window with ONLY the first file attached. The syntax for this to work here is to put all the files comma-separated inside the ''s of attachment='': thunderbird -compose "to=me@gmail.com,subject=LO3attachments,Body=Attached,attachment='file:///tmp/monkey.odt,file:///tmp/monkey-1.odt'" this opens up a compose window with both here. Can't really tell from https://developer.mozilla.org/En/Command_Line_Options which is supposed to be the right syntax... my2c Arno