Email Workflows


You want to realize a ticket system with kenaflow. Therefore incoming mails must be processed. An automatic answer needs to be send to the ticket author. A unique ticket ID is given.

You cannot realize this scenario with SharePoint "incoming mail" features. - With kenaflow it is easy.

Getting Started Knowledge

An e-mail workflow processes the e-mails in a mailbox and executes the workflow script for each e-mail found.

You can connect a kenaflow email workflow to a mailbox hostet in Exchange (2007, 2010, 2013, Online) or accessable with IMAP or POP3.

kenaflow will mark processed mails as "read" and only process "unread" mails. - In case of POP3 this is not possible because mails cannot be marked as "read". They have to be removed in order to prevent multiple executions. So you should not use POP3.

The email is processed by a workflow script and is given as object with these properties:

public class kenaflowMailMessage
	public string Id { get; set; }
	public string TextBody { get; set; }
	public string HtmlBody { get; set; }
	public string Subject { get; set; }
	public IEnumerable<kenaflowMailAttachment> Attachments { get; set; }
	public MailAddress Sender { get; set; }
	public List<MailAddress> CcRecipients { get; set; }
	public List<MailAddress> Recipients { get; set; }
	public List<KeyValuePair<string, string>> Headers { get; set; }

Attachments are of this type:

public class kenaflowMailAttachment
	public MemoryStream Content { get; set; }
	public string FileName { get; set; }