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
Alex ZelinskiAlex Zelinski 

Custom Email Service Not Working

Hi,

I've written a custom email handler to deal with some automated emails we receive. I first worked on this in a Sandbox, and everything was working fine. After pushing this to our next environment, though, it's not functioning at all. I'm not getting any errors, just nothing is happening. What should happen is that an incoming email will create a case, unless there is already a case with that subject, in which case it will insert a comment. When I send an email to my email service address, though, nothing happens.

I have already checked that deliverability is set to all emails. I've made sure the email service is set to active. I made sure all the code came over. I'm not sure what else I should check or what else it could be. Any ideas?

Thanks!
Eva TannenbaumEva Tannenbaum

Hi Alex,

Have you checked the 'Accept Email From' fields in the email service?

One in the Email Services page and the other one in the Email Address configuration page.

If you want to accept email from any email address, don't put anything in both fields.

https://developer.salesforce.com/forums/?id=9060G000000Xds8QAC