K2 makes it extremely easy to generate an automated e-mail which is then distributed to a specified person or user group participating in your K2 Workflow.
If you are unsure about how to accomplish this you can find more information at here.
During development and testing of your workflows, you however would not like to send out these emails to actual email address, but rather have them dropped into a local pickup folder.
K2 Automated Testing Software
BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.
From there you can access them and verify that your workflow is working correctly and the email’s that are being generated contain the correct data.
If you are unsure about where to start this might seem like a daunting task, but it is actually extremely easy and can be accomplished by just adding one setting to the K2 Host Server’s configuration file. The K2 server’s configuration file is located at:
C:Program Files (x86)K2 blackpearlHost ServerBinK2HostServer.exe.Config
Like most config files this is just a normal XML file. To have mail delivered to a local pickup folder instead of being sent to the mailserver you just need to add the following section to the root node of the XML file.
<system.net>
<mailSettings>
<smtp deliveryMethod="SpecifiedPickupDirectory">
<specifiedPickupDirectory pickupDirectoryLocation="C:YourPickupDirectory" />
</smtp>
</mailSettings>
</system.net>
Just make sure the directory exists and K2 will handle the rest of the magic on your behalf.