The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

With all this focus on new media, we mustn’t forget the old – and here’s a tech talk to help you remember. Email in particular. It rocks. The world pretty much runs on email. Okay, perhaps a few web services too. But email is still up there!

So it makes sense to know how to use it on When I wrote the this article on integration I added email as an integration option. Want to integrate with an old mainframe? Chuck in a few email handlers. Want to integrate with a new human on his palmtop? Chuck in a few email handlers.

And it’s not that difficult really. Here’s the Apex Code that can serve as the basis of an email handler – something that intercepts incoming emails:

Just a little configuration (setting up an email address and associating it with the handler) is about all else you need. Of course you can also send email, and more.

We just had a nice little webinar on the topic, Tech Talk: Introduction to the Email Services on – check it out for an introduction.

Get the latest Salesforce Developer blog posts and podcast episodes via Slack or RSS.

Add to Slack Subscribe to RSS