+ Start a Discussion
MegachuckmcMegachuckmc 

Getting started with Apex Email services

This question comes from a guy who is not a developer (per se) but understands enough to implement things with a little help.... :smileywink:
 
What is the minimal amount of code that I would need to get Apex Email services started.  The need we are trying to solve is basically along the lines of the Email-to-case solution.  We get lots of requests from our Sales guys and just want to create "Cases" from the emails, which don't get lost like emails! Nothing fancy!
 
Any bits of sample code would be greatly appreciated, (along with a basic instructions for how to implement the code)
 
Thanks in advance!
Mike
 
 
Rasmus MenckeRasmus Mencke
Hi,

Take a look at the Developer wiki, there are two pieces of sample code that should get you started

https://wiki.apexdevnet.com/index.php/Force.com_Email_Services_Unsubscribe

https://wiki.apexdevnet.com/index.php/Force.com_Email_Services


paul-lmipaul-lmi
on top of the post above, you'll also need to ensure that your email server can deliver to the dynamic address salesforce will generate.  you can't just forward email to it and expect the contact info to stay intact.  MS Exchange supports this by creating an email list, and having one of the SMTP deliver-to addresses be the SF one.

Gmail/Hotmail/Yahoo/etc will not work for this type of implementation.
InfopiaInfopia
Paul,
 
The Apex Email Services work fine in Gmail by setting up a filter to forward to the dynamic salesforce address.
 
Thanks,
Jon
paul-lmipaul-lmi
good to know.  thanks for checking that out.  :)