https://bz.apache.org/ooo/show_bug.cgi?id=111298

--- Comment #7 from [email protected] ---
This is how you send emails using the easier
com.sun.star.system.SystemMailProvider:

---snip---
Sub Main
        oMailer = CreateUnoService("com.sun.star.system.SystemMailProvider")
        oMailClient = oMailer.queryMailClient()
        oMessage = oMailClient.createMailMessage()
        oMessage.Recipient = "[email protected]"
        oMessage.Subject = "Test email"
REM     oMessage.Attachement = Array(sUrlMail)
        cMail = com.sun.star.system.MailClientFlags.NO_USER_INTERFACE =1
        oMailClient.sendMailMessage( oMessage, cMail )
End Sub
---snip---

On Linux this calls the "senddoc" script in your program/ subdirectory of the
OpenOffice installation. That script can break in a number of ways, for example
it needs the MAILER environment variable to be populated with either:
iceape | mozilla | netscape | seamonkey | icedove | thunderbird
kmail
mutt
evolution
groupwise
dtmail
sylpheed | claws | claws-mail
Mail | Thunderbird | *.app

or if none match, falls back to ${DESKTOP_LAUNCH} which I am not sure about,
might not exist any more, and there is an "xdg-email" script we could use
instead.

-- 
You are receiving this mail because:
You are the assignee for the issue.
You are on the CC list for the issue.

Reply via email to