function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anvesh@force.comanvesh@force.com 

what is email services?

what is email services?  what operations that we can perform by using email services?how we can do that.

 

please dont gove any LINKS  to read.... i  need  explanation to understand

Best Answer chosen by Admin (Salesforce Developers) 
AroraAnupAroraAnup

Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages.


You can associate each email service with one or more Salesforce-generated email addresses to which users can send messages for processing. To give multiple users access to a single email service, you can:
Associate multiple Salesforce-generated email addresses with the email service and allocate those addresses to users.
Associate a single Salesforce-generated email address with the email service, and write an Apex class that executes according to the user accessing the email service. For example, you can write an Apex class that identifies the user based on the user's email address and creates records on behalf of that user.

 

When defining email services, note the following:

  1. An email service only processes messages it receives at one of its addresses.
  2. Salesforce limits the total number of messages that all email services combined, including On-Demand Email-to-Case, can process daily. Messages that exceed this limit are bounced, discarded, or queued for processing the next day, depending on how you configure the failure response settings for each email service. Salesforce calculates the limit by multiplying the number of user licenses by 1,000, up to a daily maximum of 1,000,000. For example, if you have ten licenses, your organization can process up to 10,000 email messages a day.
  3. Email service addresses that you create in your sandbox cannot be copied to your production organization.
  4. For each email service, you can tell Salesforce to send error email messages to a specified address instead of the sender's email address.
  5. Email services rejects email messages and notifies the sender if the email (combined body text, body HTML and attachments) exceeds approximately 10 MB (varies depending on language and character set).

All Answers

AroraAnupAroraAnup

Email services are automated processes that use Apex classes to process the contents, headers, and attachments of inbound email. For example, you can create an email service that automatically creates contact records based on contact information in messages.


You can associate each email service with one or more Salesforce-generated email addresses to which users can send messages for processing. To give multiple users access to a single email service, you can:
Associate multiple Salesforce-generated email addresses with the email service and allocate those addresses to users.
Associate a single Salesforce-generated email address with the email service, and write an Apex class that executes according to the user accessing the email service. For example, you can write an Apex class that identifies the user based on the user's email address and creates records on behalf of that user.

 

When defining email services, note the following:

  1. An email service only processes messages it receives at one of its addresses.
  2. Salesforce limits the total number of messages that all email services combined, including On-Demand Email-to-Case, can process daily. Messages that exceed this limit are bounced, discarded, or queued for processing the next day, depending on how you configure the failure response settings for each email service. Salesforce calculates the limit by multiplying the number of user licenses by 1,000, up to a daily maximum of 1,000,000. For example, if you have ten licenses, your organization can process up to 10,000 email messages a day.
  3. Email service addresses that you create in your sandbox cannot be copied to your production organization.
  4. For each email service, you can tell Salesforce to send error email messages to a specified address instead of the sender's email address.
  5. Email services rejects email messages and notifies the sender if the email (combined body text, body HTML and attachments) exceeds approximately 10 MB (varies depending on language and character set).
This was selected as the best answer
shraddha kawaneshraddha kawane
The general template to create the apex class for the email services is:

global class myHandler implements Messaging.InboundEmailHandler
{

 global Messaging.InboundEmailResult handleInboundEmail(Messaging.InboundEmail email, Messaging.InboundEnvelope envelope)
{

  Messaging.InboundEmailResult result = new Messaging.InboundEmailresult();

     return result;

      }

  }
shraddha kawaneshraddha kawane
To use email services, from Setup, click Develop | Email Services.
1. Click New Email Service to define a new email service.
2. Select an existing email service to view its configuration, activate or deactivate it, and view or specify addresses for that email service.
3. Click Edit to make changes to an existing email service.
4. Click Delete to delete an email service.