You need to sign in to do that
Don't have an account?
sachin.ramdasi
Issues in Apex Email services
Hi All
I'm trying to use Apex Email services to add a record through Email services. However whenever I try to send email to the unique email id provided by Force.com platform, I get a delivery failure message
>>> myemailservice@m0om390t358iogz2ztahv3vl.in.salesforce.com
>>> (Undelivered): 554 System.StringException: Ending position out of
>>> bounds: 3 Class.EmailToApex.getFieldValue: line 5, column 16
>>> Class.EmailToApex.handleInboundEmail: line 11, column 44 External
>>> entry point
Did anybody faced similar issues while using Email Services?
Thanks in advance
you email service is working but some error in your code. Please paste your code.
your email.plainTextBody is null. You have to first check email body type and then pass value into your getFieldValue method.