Hi,
I like to send a e-mail with or without attachment.
I succesfully implemented the ISendMailService, but after a little research it seems to me that it is not possible to add an attachment.
After searching on SDN I found information about Collaboration > Groupware > Mail. I also found this document 'How to build a Groupware Connector'!
The question is: Is it possible to realize my wanted functionality with the mail part in collaboration\groupware?
When Yes, then it seems to me that i need to implement a transport with the following implements: IMailSendTransport, ISendTransport
The transport class now needs to implement a method initialize with the following inputparameters IGWResourceManager and a List.
My questions are:
How do I get a the IGWResourceManager initialized?
What does the List parameter (called configuration) expects?
Answers of example code or any other information to get a mail function working is very welcome!
Kind regards.
Marinus
Hi Marinus,
at a first glance, you should be able to use the two following APIs already implemented within KMC (you only need the corresponding settings done):
a) Create an IMailItem and send it via IMailSendTransport; the IMailItem has got the method <i>addAttachment</i>
b) Create an ISendMailItem and send it via ISendMailService; the ISendMailItem has got the method <i>setAttachmentList</i>
For details check out the portal applications and their implementation classes com.sap.netweaver.coll.appl.gw and/or com.sap.netweaver.coll.shared (just decompile the parts which sound interesting).
> I succesfully implemented the ISendMailService
You don't have to implement that service, it is already implemented (com.sap.ip.collaboration.gw.impl.service.mail.SendMailService).
Hope it helps
Detlev
PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!
Dear Sir,
We are trying to build a portal application using AbstractGroupwareItem. But we are not able to understand how to go about it. From the forum we found out that you have already implemented the mailing service. Can you please guide us how to go about it.
Hoping to receive a reply.
Thanks a lot.
Regards,
Ranu
Add a comment