To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82660


User paolomantovani changed the following:

                What    |Old value                 |New value
================================================================================
                      CC|'cornouws,hi,manens,mci'  |'cornouws,hi,manens,mci,pa
                        |                          |olomantovani'
--------------------------------------------------------------------------------




------- Additional comments from paolomantov...@openoffice.org Sun Jul 19 
22:49:10 +0000 2009 -------
The same problem affects also CcRecipient and BccRecipient.
Please, consider the code below (tested in Ubuntu 9.04 / OpenOffice.org 3.1
(OOO310m11 build:9399)
In the created mail message, the cc, bcc and attachment fields contains only the
first item of the array passed


sub testmail
        'try to obtain a mail service
        oMailService = createUnoService("com.sun.star.system.SimpleSystemMail")
        If IsNull(oMailService) Then
                oMailService = 
createUnoService("com.sun.star.system.SimpleCommandMail")
        End If
        oMailClient = oMailService.querySimpleMailClient()
        oMailMessage = oMailClient.createSimpleMailMessage()
        
        url1 = convertToUrl("/home/paolo/test1.txt")
        url2 = convertToUrl("/home/paolo/test2.txt")
        url3 = convertToUrl("/home/paolo/test3.txt")
        With oMailMessage
                .Originator = "sen...@test.org"
                .Recipient = "recipi...@test.org"
                .Subject = "helo"
                .CcRecipient = Array("c...@test.org", "c...@test.org", 
"c...@test.org")
                .BccRecipient = Array("b...@test.org", "b...@test.org", 
"b...@test.org")
                .Attachement = Array(url1, url2, url3)
        End With
        
        
        oMailClient.sendSimpleMailMessage( _
                oMailMessage, 
com.sun.star.system.SimpleMailClientFlags.DEFAULTS)
end sub

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@framework.openoffice.org
For additional commands, e-mail: issues-h...@framework.openoffice.org


---------------------------------------------------------------------
To unsubscribe, e-mail: allbugs-unsubscr...@openoffice.org
For additional commands, e-mail: allbugs-h...@openoffice.org

Reply via email to