Specify "from email" when using an InfoPath Client Event

  • 22 February 2012
  • 1 reply
  • 0 views

Badge

I am using an InfoPath client event in my process and have a requirement that the email come from a specific user.  I do not want this to originate from the default system@k2.local address but would want it to be an email that is specific to this process.  Does anyone know if this can be done by modifying the code within the InfoPath client event itself?  


1 reply

Badge +8

If you are using the Client Event Notification, there is no way to control this on a per process level. If you are OK changing the from field for all processes, change the "sendmailfrom" tag in the SourceCode.EventBus.Server.config file (Host Serverin directory). Remember that this requires a restart of the K2 Service.


If this is a big issue, you can opt to use a Mail Event. This allows you to customize the From field for each event. The tricky part here will be to build the Task URL. The exact format can be found in the InfoPath Client event code behind, look at the SetWorklistUrl method.

Reply