Skip to Main Content
Development with the Force.com Platform: Building Business Applications in the Cloud, Third Edition
book

Development with the Force.com Platform: Building Business Applications in the Cloud, Third Edition

by Jason Ouellette
December 2013
Intermediate to advanced content levelIntermediate to advanced
448 pages
13h 44m
English
Addison-Wesley Professional
Content preview from Development with the Force.com Platform: Building Business Applications in the Cloud, Third Edition

Receiving Email

The two steps for configuring Force.com to process inbound emails are as follows:

1. Write an Apex class that implements a specific interface (Messaging.InboundEmailHandler) and method (handleInboundEmail). This provides your code access to the envelope (Messaging.InboundEnvelope) and content (Messaging.InboundEmail) of inbound emails, including mail headers and attachments. It is otherwise standard Apex code with no special restrictions. The return value of this method is a Messaging.InboundEmailResult. To indicate processing failure, set the success field of this object to false. Any explanatory message set in the message field is returned to the sender as an email response.

2. Create an Email Service using the native user interface. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Development with the Force.com Platform: Building Business Applications in the Cloud, Second Edition

Development with the Force.com Platform: Building Business Applications in the Cloud, Second Edition

Jason Ouellette

Publisher Resources

ISBN: 9780133511611Purchase book