Re: [api-dev] com.sun.star.mail
Hi Alex, Alex Thurgood schrieb: Peter Eberlein wrote: Hi, I can connect to SMTP (thanks to ms777) with the following snippet, but found no way to instanciate a com.sun.star.mail.MailMessage (CreateUNOService(com.sun.star.mail.MailMessage) gives me a null-object). Is this interface not a left over stub from StarOffice, which used to have a mailer component ? I thought that this had been withdrawn from the code along with the all-in-one desktop interface. No, it's a new one. The Service says: since 2.0.0 For StarOffice 5.2 you had to use the Service com.sun.star.chaos.System for mailing. Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] com.sun.star.mail
Peter Eberlein wrote: Hi, I would like to use the subject module for mailing, because com.sun.star.system.SimpleSystemMail has some restrictions (no access to body). I can connect to SMTP (thanks to ms777) with the following snippet, but found no way to instanciate a com.sun.star.mail.MailMessage (CreateUNOService(com.sun.star.mail.MailMessage) gives me a null-object). Any hints? IIRC there is no implementation for this service in OOo at all. OOo's strategy for mailing is to use the system mailer (via SimpleMail and SimpleSystemMail), OOo doesn't want to be a replacement for a mail program. With an own builtg in SMTP engine OOo would need to provide (and maintain) at least an outbox folder, that's nothing we want to do. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] com.sun.star.mail
You could implement your own MailService which you can instatiate from OOBasic if you are familiar with java ;-) http://jakarta.apache.org/commons/email/ Tom Mathias Bauer wrote: Peter Eberlein wrote: Hi, I would like to use the subject module for mailing, because com.sun.star.system.SimpleSystemMail has some restrictions (no access to body). I can connect to SMTP (thanks to ms777) with the following snippet, but found no way to instanciate a com.sun.star.mail.MailMessage (CreateUNOService(com.sun.star.mail.MailMessage) gives me a null-object). Any hints? IIRC there is no implementation for this service in OOo at all. OOo's strategy for mailing is to use the system mailer (via SimpleMail and SimpleSystemMail), OOo doesn't want to be a replacement for a mail program. With an own builtg in SMTP engine OOo would need to provide (and maintain) at least an outbox folder, that's nothing we want to do. Best regards, Mathias signature.asc Description: OpenPGP digital signature
Re: [api-dev] com.sun.star.mail
Hi Mathias, Mathias Bauer schrieb: Peter Eberlein wrote: Hi, I would like to use the subject module for mailing, because com.sun.star.system.SimpleSystemMail has some restrictions (no access to body). IIRC there is no implementation for this service in OOo at all. OOo's strategy for mailing is to use the system mailer (via SimpleMail and SimpleSystemMail), OOo doesn't want to be a replacement for a mail program. If you can show me how to access the mailbody, I also would prefer this.. ;) With an own builtg in SMTP engine OOo would need to provide (and maintain) at least an outbox folder, that's nothing we want to do. You know shurely, that Caolan has solved this with python (from 2.0.1 upwards). So it should be possible to use this with basic or python macros. Nobody there who is familiary with this stuff? Regards Peter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] com.sun.star.mail
Peter Eberlein wrote: Hi, I can connect to SMTP (thanks to ms777) with the following snippet, but found no way to instanciate a com.sun.star.mail.MailMessage (CreateUNOService(com.sun.star.mail.MailMessage) gives me a null-object). Is this interface not a left over stub from StarOffice, which used to have a mailer component ? I thought that this had been withdrawn from the code along with the all-in-one desktop interface. Alex - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]