Acquiring the Verification Code from Email Service Address

<< Click to Display Table of Contents >>

Navigation:  Table of Contents > Configuration of Email to Text > Configure the Organization-wide Email Address to forward to Email Service Address >

Acquiring the Verification Code from Email Service Address

 

To acquire the verification code from the Email Service Address, do the following:

1.Open the Developer Console in Salesforce Org.

devconsole0

Select Developer Console

 

2.Open NotificationReplyServiceHandler.

devconsole1

Select the entity NotificationReplyServiceHandler

 

3.Search for the line containing validateInboundEmail(Messaging.InboundEmail email).

devconsole2

The line containing validateInboundEmail(Messaging.InboundEmail email)

 

4.Enter System.debug('verification code = '+ email.plainTextBody); after validateInboundEmail(Messaging.InboundEmail email). The new code can be commented afterwards.

devconsole3

Add System.debug('verification code = '+ email.plainTextBody);

 

Links