Hi Stephan,
Stephan Bergmann schrieb:
Assuming your code is in Java, then
XMailMessage xMailMessage = com.sun.star.mail.MailMessage.create(
xComponentContext, "[EMAIL PROTECTED]", "[EMAIL PROTECTED]",
"Subject", new TextTransferable("Body"));
would be the right way to do it. (However, I have no idea why
xMailMessage is null for you.)
I got a com.sun.star.uno.DeploymentException: component context fails to
supply service com.sun.star.mail.MailMessage of type
com.sun.star.mail.XMailMessage
at com.sun.star.mail.MailMessage.$castInstance(Unknown Source)
The Office is starting in listening mode, so I get the xComponentContext
from the propertyValue("DefaultContext").
Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]