Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Inbound/outbound emails from Servicenow PDI - Article

SK Chand Basha
Tera Sage

 

                                  Inbound and outbound emails from ServiceNow PDI

  • All the emails reside in the email server
  • To process the emails from and to ServiceNow we have to connect with Email Server download emails from it
  • Create a new email account for this for better practise

Setup connection between Email Server and Servicenow

  • Navigate to ALL-> Email Accounts

SKChandBasha_26-1711452208617.png

 

SKChandBasha_27-1711452208622.png

 

  • Click on New and fill the details
  • Name :- Unique name
  • Server :- pop.gmail.com
  • Username :- Email Id

SKChandBasha_28-1711452208628.png

 

 

Information of Protocols

  • POP3(Post office protocol version-3) :- Downloading and receiving a mail
  • SMTP (Simple mail transfer agent) :- Sending the email out (MTA – Message Transfer Agent)
  • IMAP (Internet Message Access protocol) :- While using IMAP users are not downloading the message that they want to read on the system.
  • Pop.gmail.com – 990 Port Number
  • Smtp.gmail.com – 465 Port Number

 

Password Generation:-

  • Go to myaccount.google.com

SKChandBasha_29-1711452208635.png

 

  • Go to Security

        

SKChandBasha_30-1711452208641.png

 

  • Scroll down go to signing to google

        

SKChandBasha_31-1711452208644.png

 

  • Activate two step verification
  • If it is already activated  you can skip the below step

       

SKChandBasha_32-1711452208647.png

 

  • Click on 2- Step Verification

       

SKChandBasha_33-1711452208651.png

 

  • Click on Get Started

SKChandBasha_34-1711452259091.png

 

  • Give your mobile number
  • Click on next
  • You will receive a OTP Code click on next

SKChandBasha_35-1711452259095.png

 

  • Click on Trun On
  • Go back to the google account -> Security
  • Once 2-step process is enabled App Passwords is visible to us

 

                  

SKChandBasha_36-1711452259099.png

 

  • Click on App Passwords

                 

SKChandBasha_37-1711452259102.png

 

  • Select Mail

                 

SKChandBasha_38-1711452259104.png

 

  • Select Other and give the name

                  

SKChandBasha_39-1711452259106.png

 

  • Click on Generate

                  

SKChandBasha_40-1711452259109.png

 

  • Copy the password
  • Go back to the Email Account
  • Paste the Password
  • Choose Security :- SSL/TLS
  • Enter the Port Number :- 995

                     

    SKChandBasha_41-1711452295012.png

     

    • Save the form

                      

    SKChandBasha_42-1711452295014.png

     

                     

    • Click on Test Credentials

                          

    SKChandBasha_43-1711452295015.png

     

    • Click on Active and save the form
    • Navigate to ALL-> Email Properties

                          

    SKChandBasha_44-1711452295018.png

     

    • Enable the email receive and save

                        

    SKChandBasha_45-1711452295026.png

     

    • Wait for three (3) Minutes
    • Because system property of email set value is 3

                        Checking POP Enable of Email Server

    • Go the Gmail App
    • Click on the Settings

                       

    SKChandBasha_46-1711452295033.png

     

    • Click on see all settings
    • Go to Forwording and POP/IMAP

                      

    SKChandBasha_47-1711452295037.png

     

    • From the emails check downloaded or not from email server to PDI

                       

    SKChandBasha_48-1711452295046.png

     

    • Congrats !!! If you are getting mails means inbound is working fine.

            Outbound Emails:-

    • Navigate to Email Accounts
    • Create New SMTP account
    • Fill the fields
    •                    

      SKChandBasha_49-1711452344230.png

       

                       

      • Email User Label :- Unique name
      • Username and password similar to above account
      • Connection Security :- SSL/TLS
      • From :- Email Id
      • Port Number :- 465
      • Save the form and test the Credentials
      • Enable Active and save
      • Navigate to Email Properties

                

      SKChandBasha_50-1711452344234.png

       

      • Enable Email Sending and save the form

        Testing:-

      • Create an user with your email ID
      • Create an Incident with assigned to your user account
      • Navigate to Emails -> Created on today
      • Refresh and Type will be changes Send- Ready
      • Once Type changes to sent you will receive an email

      Testing Inbound Email :-

      • Open the personal Gmail App
      • Click on send Gmail
      • In TO give your create gmail account ID(which is used for Servicenow Connection)
      • Give any Subject and Body
      • Click on send
      • Navigate to emails and check if it received or not
      • Where type is Received (Takes some time -refresh)

      Extra Information :-

              

      SKChandBasha_51-1711452344243.png

       

    • Note: Please Mark this Helpful ,If this Helps you . This will help both the community and me.

       

      Happy Learning !!!

      Regards

      SK CHAND BASHA

      

 

 

          

 

 

 

 

4 REPLIES 4

tharun24
Tera Expert

 

Information is  very insightful  👏 

 

rathan_now
Tera Contributor

Very Informative, Thanks for sharing Mr. @SK Chand Basha.

GeoThomas
Tera Contributor

This is a very good solution, thanks. But Unfortunately I cannot use this according to the organization policy.

But found another option recomended, which would need me to get the following from service now:

MX record values

DKIM entries (2048-bit)

SPF entries

DMARC entry specific to the subdomain

 

Is there a way to get these from service now

Anil9866
Tera Expert