Hi there,
while tidying up some samples, I stumbled over a problem using
"com.sun.star.system.SimpleSystemMail" (cf.
<http://api.openoffice.org/docs/common/ref/com/sun/star/system/SimpleSystemMail>)
to send e-mail via an installed e-mail client.
Software:
* Windows XP with SP3 [the same behaviour was reported by students
using Vista and W7],
* OOo 3.2.1,
* Thunderbird 3.0.3.
Creating the mail using "SimpleSystemMail" and using
"sendSimpleMailMessage(mail, flag)" with a flag of value "0"
("DEFAULTS") works, but a GUI (actually the Thunderbird send message
window with everything that got set in the macro displayed correctly,
including attachments) is displayed and the user must physically send
the mail.
Now, having a macro means that one wishes to also automate the sending
process, hence the desire to use a flag of value "1"
("NO_USER_INTERFACE", cf.
<http://api.openoffice.org/docs/common/ref/com/sun/star/system/SimpleMailClientFlags>)
causes an error with an error message:
"Sending of message failed. Please verify that your Mail &
Newsgroups account settings are correct and try again."
All settings seem to be correct, as the "DEFAULTS" version works flawlessly.
---
Researching this on the issue tracker did not really reveal anything
meaningful, just
<http://www.openoffice.org/issues/show_bug.cgi?id=68596> which says
"Will not be fixed.".
So I am wondering, whether I have been doing something wrong expecting
"NO_USER_INTERFACE" to work flawlessly, if "DEFAULTS" works ?
Any hints, insights highly appreciated !
---rony