https://bugs.freedesktop.org/show_bug.cgi?id=82007
Priority: medium
Bug ID: 82007
Assignee: [email protected]
Summary: com.sun.star.system.SimpleCommandMail - Attachment
ignored
Severity: normal
Classification: Unclassified
OS: Linux (All)
Reporter: [email protected]
Hardware: x86-64 (AMD64)
Status: UNCONFIRMED
Version: unspecified
Component: BASIC
Product: LibreOffice
Hello everybody,
I use the following piece of (basic-)code to send documents from
LibreOffice-Base via E-Mail. The code used to work in LibreOffice 3.x but does
not in LibreOffice 4.x (I've tested it on LibreOffice 4.2 and 4.3 on Ubuntu
13.10, 14.04). The Problem is the document is not attached - though no error
occurs. It's simply the attachment's gone missing.
I'm not sure whether it is actually a bug.
Thanks and regards
Here's the piece of code in question:
' ...
' Testen, ob Windows
If GetGuiType() = 1 Then
objMail = createUnoService("com.sun.star.system.SimpleSystemMail")
' Sonst Liux/Mac
Else
objMail = createUnoService("com.sun.star.system.SimpleCommandMail")
End If
' Zugriff auf Mail-Client-Programm
objMailClient = objMail.querySimpleMailClient()
' Message-Objekt erstellen
objMessage = objMailClient.createSimpleMailMessage()
' Nachrichtenempfänger setzen
objMessage.setRecipient(strEmailAddress)
' Betreff setzen
objMessage.setSubject(strSubject)
' Aktuelles Dokument als Anhang
mAttachment(0) = strDateiName
objMessage.setAttachement(mAttachment())
' MailClient öffnen
objMailClient.sendSimpleMailMessage(objMessage, 0)
' ...
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs