function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Samyra Chrisp 18Samyra Chrisp 18 

how do I set up email services?

I need to set up email to case.  Email services is not turned on in the org.

The first message I see is:

Before creating email services, create Apex classes that implement the Messaging.InboundEmailHandler interface.

global class myHandler implements Messaging.InboundEmailHandler { global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope) { Messaging.InboundEmailResult result = new Messaging.InboundEmailresult(); return result; } }

I tried setting this up in a sandbox and deploying through an outbound change set, but deployment fails   

I'm a novice at this, and I'm not sure what to do next.
NagendraNagendra (Salesforce Developers) 
GauravGargGauravGarg
Hi Samyra,

Can you share the error logs