Skip to Content
author's profile photo Former Member
Former Member

Send email with attachment


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.


Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    Posted on Jan 12, 2006 at 04:17 PM

    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 and/or (just decompile the parts which sound interesting).

    > I succesfully implemented the ISendMailService

    You don't have to implement that service, it is already implemented (

    Hope it helps


    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Detlev Beutner

      Hi Detlev,

      Your solution with <br> was the solution. I should though of that myself.

      I downloaded JAD and will have a look at it and use it.

      So my e-mail client is finally finished. I am thinking to make a Blog about it, if I have time.

      So thankx for all your help. I rewarded points.

      Kind regards,


  • author's profile photo Former Member
    Former Member
    Posted on Oct 14, 2006 at 05:45 AM

    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.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.