Skip to main content

Hello all,


 


Is there anyway of deactivating all the emails to be sent from a process without setting an invalid smtp server in K2 config.


 


Thank you,


Tiago Calado

You can route all emails to a folder for all .NET based applications (including K2) that use the System.Net.Mail classes for email.  This can be useful when testing a process and not wanting to flood users with emails.


To do, add the following section to the K2Hostserver.config file:


    <system.net>
      <mailSettings>
        <smtp deliveryMethod="SpecifiedPickupDirectory" from="administrator@denallix.com">
          <specifiedPickupDirectory pickupDirectoryLocation="c:foo"/>
        </smtp>
      </mailSettings>
    </system.net>


The System.Net.Mail classes that K2 blackpearl uses for sending emails will automatically use these settings in the .config file if they exist.  Specify the directory where you want your emails stored.  Note, this will affect all emails sent form K2 blackpearl.


 


Jan, thanks for your reply.


I will make a suggestion to K2 support, like a out of the box field for each process, in Workspace, to deactivate emails.


 


Thank you


that can be an interesting feature :-)


Reply