https://issues.apache.org/ooo/show_bug.cgi?id=123067
Bug ID: 123067
Issue Type: DEFECT
Summary: Recipient and Subject cannot be set and Attachement
won't work with new SystemMailProvider
Product: App Dev
Version: 4.0.0
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: vba
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
When using SystemMailProvider and createMailMessage the Recipient and the
Subject will not be passed on to the email-client. If you xray eMessage
Recipient and Subject they are "".
eMessage.Attachement returns "object variable not set"
If you delete eMessage.Attachement... the mail client (thunderbird) opens but
with no recipient and subject filled in.
sub send_email(filepath as String, eMailAdress as String)
Dim eSubject as String
Dim eMailer as Object
Dim eMailClient as Object
Dim eMessage as Object
eSubject = "Order Confirmation"
eMailer = createUnoService("com.sun.star.system.SystemMailProvider")
eMailClient = eMailer.queryMailClient()
eMessage = eMailClient.createMailMessage()
eMessage.Recipient(eMailAdress)
eMessage.Subject("eSubject")
eMessage.Attachement(Array(convertToUrl(filepath)))
'xray eMessage
eMailClient.sendMailMessage ( eMessage,
com.sun.star.system.MailClientFlags.NO_USER_INTERFACE )
End sub
Linux Mint 15 (64-bit).
aoo build 9702 rev 1503704 Linux x86_64
Works when downgrade to aoo 3.4.1 and SimpleCommandMail
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.
You are watching all bug changes.