Issue 35994 - API: cmdmail.SimpleCommandMail
Summary: API: cmdmail.SimpleCommandMail
Status: ACCEPTED
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All All
: P3 Trivial
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-10-22 10:10 UTC by chne
Modified: 2013-02-24 21:09 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description chne 2004-10-22 10:10:51 UTC
This component is not available on windows. This is ok sicne SimpleCommentMail
works only on UNIX. The UNO-API-Tests must be modified.
Comment 1 manens 2006-03-20 16:44:09 UTC
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 ?
Comment 2 pagalmes.lists 2006-03-21 09:21:53 UTC
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
Comment 3 chne 2006-05-26 10:28:53 UTC
accepted
Comment 4 pagalmes.lists 2007-10-11 12:52:03 UTC
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.
Comment 5 chne 2007-10-15 21:36:21 UTC
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.
Comment 6 pagalmes.lists 2007-10-16 12:48:24 UTC
cn : I just created issue 82660 to follow this.
Comment 7 mci 2008-05-13 19:24:54 UTC
added mci to CC
Comment 8 chne 2009-04-20 12:05:41 UTC
change owner
Comment 9 chne 2009-04-28 11:59:42 UTC
reassign
Comment 10 gigahz 2012-06-27 06:23:53 UTC
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