Sending email from K2 Configuration

Last post 07-09-2008, 4:22 AM by GLouw. 1 replies.
Sort Posts: Previous Next
  •  07-04-2008, 1:10 AM 24660

    Sending email from K2 Configuration

    Hi,

    I have a Default Server Event (WF) and from within this I need to send an email.  I have a couple of questions on this

    1.  Is there anyway for me to use the MailEvent in K2 that comes by default.  In the Default Server Event (WF) you can use only strictly Windows Workflow Foundation Activities as far as I know.

     2. How do I read the configuration data (configured email server) from code?

     

    Thanks

    Arjuna.

  •  07-09-2008, 4:22 AM 24748 in reply to 24660

    Re: Sending email from K2 Configuration

    Hi Arjuna,

    I guess there are several ways that you can approach this - it depends on how much logic you have in your WF code event? Is it fairly big and complex?

    1. You can not call a K2 event from WF code activity - but you can write (or copy paste) code over to the WF code to do the same, however configuration data will be lost.

    2. You can only get the configuration data from the server event where the data was configured. In other words if you ran the email event wizard then you can get to the configuration data values only inside that event - not in a different one.


    Gerhard
    -----------------------------------------------------------------------------
View as RSS news feed in XML