Reject emails sent from unknown requester and send notification using scripts for 10.6 and above.

Reject emails sent from unknown requester and send notification using scripts for 10.6 and above.

This script is specifically for builds 10.6 and above


Usecase Organizations don't want to handle/fetch unapproved contacts mails into the application. They also want to notify the end user when they send email stating-> "The Request raised by you is rejected. Kindly send mail from the registered email."

Solution: 
You need to add the attached script in the Request Custom Function in the UI and to create a Business Rule as explained below.

1) Request Custom Function:

Admin -> Request Custom Function 



->Name the function. (In the snapshot its mentioned as Negate Request. You can name it as per convenience) 
->Add the attached script in this empty space.
->You need to enter out going mail id (that is mentioned in the Mail server settings) in the first line of the script instead of FROM MAIL ADDRESS.
-> Save it. 

2) Creating a Business Rule:
Admin -> Business Rule 
-> Name the rule
-> Select "Execute on actions as Created"
-> Follow the snapshot to fill in the other details. 
-> Action: Select the Custom Function: Fill in the name of the Request Custom Function -created 
-> Update the Business Rule. 



3) In the Self Service Portal Settings:

Admin -> Self Service Portal 
Click on the Requesters & Technicians tab as shown below.

Select on the Add Unknown User As - Unapproved Users as shown in the below snap shot. 

 

Refresh the setup and now when an unapproved contact raises a ticket, ticket will not be created and a auto reply will be sent to him stating "The Request raised by you is rejected. Kindly send mail from registered email". 
      New to ADManager Plus?

        New to ADSelfService Plus?

          Resources

              • Related Articles

              • Script to send notifications when a unknown request is raised

                Use case The script will send email notifications to the address configured inside the script whenever a request is created under unknown requests.  This notification will be sent to Admin Email Pre-requisite - Python should be installed in the ...
              • Unknown user and technicians permission

                The requests that are not having a Site set means (Not associated to any site),, those requests are raised by Unknown users or Unregistered users or these users are NOT created in the application. These requests will be viewed only by certain ...
              • Script to send notification to users on upcoming contracts

                Please follow the below link to setup python on the server https://pitstop.manageengine.com/portal/en/kb/articles/how-to-setup-python-on-the-server-11-11-2019 Steps to configure 1.  Extract the attached zip file in <Home>/integration/custom_scripts ...
              • How to stop requests from a domain and send notification to the user for a specific account

                Use Case   When a particular account can only raise requests using Self Service Portal and not via email, the script will allow you to send a notification that the request is not raised and to create a request using Self Service Portal. Pre-requisite ...
              • Send email notification to requester when a note is added to a request

                How it works? A report will be scheduled to run at a periodic interval which will fetch he details of the request. Once the schedules runs, the script will fetch the values from the report and sends an notification through email to the requester of ...