Skip to content

A C# service created to check an office 365 inbox for messages and auto-open tickets in the STI ticket applicaiton

Notifications You must be signed in to change notification settings

KevinGage/STI_EmailToTicket

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 

Repository files navigation

STI_EmailToTicket

A C# service created to check an office 365 inbox for messages and auto-open tickets in the STI ticket applicaiton

Notes:

To install the service

  1. run developer command prompt for VS2012 as administrator
  2. change to bin folder
  3. run "installutil TicketFromEmail365.exe"

To uninstall the service

  1. run developer command prompt for VS2012 as administrator
  2. change to bin folder
  3. run "installutil /u TicketFromEmail365.exe"

Initial Goals:
Read mail server address, username, password, logging level from file. Exclude this file from git! Have example file in git.

Login using EWS managed API stream method

On new email do the following

  1. Does the email subject already have a ticket number in it?
    1. Yes, update relevant ticket notes, forward to distribution group, reply to all email addresses included in the ticket, delete email
    2. No, Is the message from a clients domain?
      1. No, Forward the email, delete the message
      2. Yes, open ticket, added From and CC email addresses to ticket, forward email to distribution group with modified subject to include ticket, reply to From address, delete email
    3. Log activity based on logging level
EWS Managed API stream method has max connect time of 30 minutes. On disconnect immediatly reconnect.

Possibly eventually add option to reply to emails directly through ticket system?

About

A C# service created to check an office 365 inbox for messages and auto-open tickets in the STI ticket applicaiton

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages