Setting up KanBo Email Notifications on Azure

Following article describes configuration of KanBo email notifications. Only unread notifications are sent by email. Each user can tun it on or off individually and specify sending intervals.


Contact us at support@kanbozone.com to receive most recent KanBo installation package.


Step 1: Prepare email notifications package

Unzip the KanBo.EmailNotifications (it can be called also KanBo.ConsoleJobHostRunner.zip) to desired location. The location can be for example a folder named "Email Notifications".

Step 2: Update KanBo.EmailNotifications.exe.config file with your parameters

For detailed information about configuration follow attached readme.txt file.

1. Copy the connection string from the KanBo web.config and put them to the KanBo.ConsoleJobHostRunner.exe.config into <connectionStrings> section.

<connectionStrings>
 <add name="KanBoContentConnectionString" connectionString="Data Source=Server,1433;Database=KanBoContentName;User ID=UserID;Password=UserPassword;MultipleActiveResultSets=True" providerName="System.Data.SqlClient" />
 </connectionStrings>

2. Configure the plugins section. In the first part, you can configure:

wait_after(1s) catch log_time(debug)

We recommend to set this settings as follows.

<plugin alias="job-host" name="mail-job" options="wait_after(1s) catch log_time(debug)">
         <job name="mail"></job>
      </plugin>

Sometimes relative paths does not work on certain environments - can you try to provide full path to the Email Notifications package instead of ".".

 <plugin alias="plugin-loader.directory" path="." />

3. Configure the second part of plugins section.

With SSL

Change the following values: 

  • https://YourKanBoAddress - to your KanBo Address
  • YourTitle - choose a title, i.e.:KanBo
  • sender@YOURDOMAIN.com in sender email and username - the email account to send emails from
  • Password to password this email account password
  • mail.YOUR_DOMAIN.COM  in Host to your email hosting address. In case of Office 365 installation, it can be smtp.office365.com.
  • Your KanBo path in Your KanBo Directory value
<job.email-notifications name="mail" link="{https://Your KanBo Address.domain}" title="{YourTitle}" template="template.html" limit="10" testrendering="true">
        
       <sender email="<b>EXISTING_OFFICE_365_USER@YOURDOMAIN</b>.onmicrosoft.com" type="SmtpClient" testto="<b>EMAIL_WHERE_TO_SEND_TEST_MESSAGE@DOMAIN.COM</b>">
    <smtpclient deliverymethod="Network" username="<b>EXISTING_OFFICE_365_USER@YOURDOMAIN</b>.onmicrosoft.com" password="<b>YOUR_PASSWORD</b>" enablessl="True" host="<b>smtp.office365.com</b>" port="<b>587</b>">
  </smtpclient></sender>
      </job.email-notifications>

As the last step, pack all the files into one .zip folder, called i.e.:

MailNotificationsWebJob

Step 2: Create a WebJob on Azure

Navigate to your KanBo Azure website (http://manage.windowsazure.com).

Enter your Web Application and select Webjobs from the left pane menu.

Click on +Add button.

Set up KanBo email notifications on Azure


Enter name: KanBoEmailNotifications.

Upload the zip File with MailNotificationsWebJob.

Set type to Continous, set Scale to Single Instance.

Click OK to save your WebJob.

Set up KanBo email notifications on Azure


Click on your Webjob and then, select Start button. As a result, a status of this Webjob will be changed to Running.

Set up KanBo email notifications on Azure


Step 3: Enable Email notifications in KanBo web.config

Open KanBo web.config and find “<add key="KanBoEmailNotifications" value="true" />” and ensure value is set to true and save the web.config.

After that clear your browser cache.


Step 5: Turn email notifications on you KanBo account

Navigate to MySettings by clicking on your user picture.



My Settings section will appear. Enter Notifications and set email notifications. You can disable them or configure them to appear every 15 minutes, 60 minutes or 24 hours.


From now on when you have a new notification in KanBo and you don't read it within KanBo or on your mobile App you will get email summing up all your unread KanBo notifications. Blow you can see an example of an email generated by KanBo.

Set up KanBo email notifications on Azure


Possible errors:

"Something bad happened with AddtoGroup" error in email notifications

It means that these notifications are very old and not compatible with the new version of Kanbo your organization now has and, since the email notifications has been enabled recently, these old notifications are being sent to people which haven't entered KanBo before.

There is a solution to fix it. Please open the Content Database of KanBo in SQL Manager. Then please execute the following script on this database: 

UPDATE NotificationUsers SET WasMailed = 1

It will resen all MailNotification Counters to 0 and you should not be getting any errors with the email notifications.

Email notifications Azure installation o365 Office365

Is this article helpful for you?