I am getting this error when writing email to my email service in my developer environment - using the email address I created the environment:
This message was created automatically by the mail system.
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:
>>> myemailservice@1tg6chj4oc8xpcatjre7pfdpa8bxwsuu9emdybfax2r7srgfba.9-p6epeaa.ap1.apex.salesforce.com (Undelivered): 554 The email service failed.
I checked the email service and the email address is added into both Email service and the email address' accepted email address list. I have also activated the email to Salesforce. I am now completely out of mind what is going wrong. It used to accept emails. I just updated my email service class and suddenly it stopped working. Any suggestions?
Attribution to: Lance Shi
Possible Suggestion/Solution #1
I just tried with an email service class with an uncaught exception and got the same error as yours.
Attribution to: Kevin Lam
This content is remixed from stackoverflow or stackexchange. Please visit https://salesforce.stackexchange.com/questions/34419