Search code examples
c#kentico

Approving and rejecting documents in Kentico 9


I am extremely new to Kentico world and i just want to use Kentico to to send mail on creating new document to admin who manage document node and sending mail to document creator after approving or rejection of the document. I search on documentation to find how to do so but i can't figure out how.

I successfully configured email parameters but i don't know how to tell the system when and which one it will going to send the mail.

Any help will be appreciated.


Solution

  • There are 2 things you'll need to configure:

    • Email server
    • Workflow

    Sounds as if you might have already configured the email server but if not you can simply do this:

    • Go to Settings>System>Mail
    • Enter your SMTP address
    • If your SMTP relay requires a username and password, enter those

    You can test this by going to the Send email tab now in the same area and see if your address and credentials work.

    Next go to the Workflow app.

    • Click on the pencil next to the Default workflow
    • Click on the Steps tab on the left
    • Click the green "New Workflow Step" button
    • In the name field enter "Submit For Approval" and ensure the "Allows reject" is checked.
    • Click Save
    • Click on the Security tab on the left.
    • For simplicity sake, only include a single user who can approve or reject by checking the "Include the following users radio button.
    • Enter yourself and another user as users in the list (for testing)

    This should be all you need to get the basic email setup and basic workflow approval process setup. If you want a more custom configuration I'd suggest checking out the documentation on Workflow